VirtualBox

Ignore:
Timestamp:
Apr 18, 2007 1:34:32 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20506
Message:

1934: Never decrease size in the layout:

QIConstrainKeeper used for the vertical size of the whatsThisLabel of VMSettings dialog, to have it's minimum size fixed at it's maximum value.

Location:
trunk/src/VBox/Frontends/VirtualBox/ui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui

    r2170 r2175  
    28052805    <variable access="private">VBoxMediaComboBox *cbISOFloppy;</variable>
    28062806    <variable access="private">VBoxUSBMenu *usbDevicesMenu;</variable>
    2807     <variable access="private">QIRichLabel *whatsThisLabel;</variable>
     2807    <variable access="private">QLabel *whatsThisLabel;</variable>
    28082808    <variable access="private">BootItemsList *tblBootOrder;</variable>
    28092809</variables>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r2170 r2175  
    404404    whatsThisCandidate = NULL;
    405405
    406     whatsThisLabel = new QIRichLabel (this, "whatsThisLabel");
     406    whatsThisLabel = new QLabel (this, "whatsThisLabel");
     407    whatsThisLabel->setTextFormat (Qt::RichText);
    407408    VBoxVMSettingsDlgLayout->addWidget (whatsThisLabel, 2, 1);
    408409
    409410    whatsThisLabel->setFocusPolicy (QWidget::NoFocus);
    410     whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed);
     411    whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding);
    411412    whatsThisLabel->setBackgroundMode (QLabel::PaletteMidlight);
    412413    whatsThisLabel->setFrameShape (QLabel::Box);
     
    418419                                       QLabel::AlignTop));
    419420
    420     whatsThisLabel->setFixedHeight (whatsThisLabel->frameWidth() * 2 +
    421                                     6 /* seems that RichText adds some margin */ +
    422                                     whatsThisLabel->fontMetrics().lineSpacing() * 3);
     421    whatsThisLabel->setMinimumHeight (whatsThisLabel->frameWidth() * 2 +
     422                                      6 /* seems that RichText adds some margin */ +
     423                                      whatsThisLabel->fontMetrics().lineSpacing() * 3);
    423424    whatsThisLabel->setMinimumWidth (whatsThisLabel->frameWidth() * 2 +
    424425                                     6 /* seems that RichText adds some margin */ +
     
    797798
    798799    VBoxGlobal::centerWidget (this, parentWidget());
     800
     801    new QIConstrainKeeper (whatsThisLabel);
    799802}
    800803
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette