VirtualBox

Ignore:
Timestamp:
Apr 18, 2007 2:48:10 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20516
Message:

FE/Qt: Undone most of the changes from changeset:20500 and changeset:20506.

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

Legend:

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

    r2175 r2185  
    28052805    <variable access="private">VBoxMediaComboBox *cbISOFloppy;</variable>
    28062806    <variable access="private">VBoxUSBMenu *usbDevicesMenu;</variable>
    2807     <variable access="private">QLabel *whatsThisLabel;</variable>
     2807    <variable access="private">QIRichLabel *whatsThisLabel;</variable>
    28082808    <variable access="private">BootItemsList *tblBootOrder;</variable>
    28092809</variables>
     
    28412841    <slot>cdMediaChanged()</slot>
    28422842    <slot>fdMediaChanged()</slot>
     2843    <slot>processAdjustSize()</slot>
    28432844    <slot>updateInterfaces( QWidget* )</slot>
    28442845    <slot>networkPageUpdate( QWidget* )</slot>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r2175 r2185  
    404404    whatsThisCandidate = NULL;
    405405
    406     whatsThisLabel = new QLabel (this, "whatsThisLabel");
    407     whatsThisLabel->setTextFormat (Qt::RichText);
     406    whatsThisLabel = new QIRichLabel (this, "whatsThisLabel");
    408407    VBoxVMSettingsDlgLayout->addWidget (whatsThisLabel, 2, 1);
    409408
    410409    whatsThisLabel->setFocusPolicy (QWidget::NoFocus);
    411     whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding);
     410    whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed);
    412411    whatsThisLabel->setBackgroundMode (QLabel::PaletteMidlight);
    413412    whatsThisLabel->setFrameShape (QLabel::Box);
     
    419418                                       QLabel::AlignTop));
    420419
    421     whatsThisLabel->setMinimumHeight (whatsThisLabel->frameWidth() * 2 +
     420    whatsThisLabel->setFixedHeight (whatsThisLabel->frameWidth() * 2 +
    422421                                      6 /* seems that RichText adds some margin */ +
    423422                                      whatsThisLabel->fontMetrics().lineSpacing() * 3);
     
    425424                                     6 /* seems that RichText adds some margin */ +
    426425                                     whatsThisLabel->fontMetrics().width ('m') * 40);
     426    /// @todo possibly, remove after QIConstraintKeeper is properly done
     427    connect (whatsThisLabel, SIGNAL (textChanged()), this, SLOT (processAdjustSize()));
    427428
    428429    /*
     
    799800    VBoxGlobal::centerWidget (this, parentWidget());
    800801
    801     new QIConstrainKeeper (whatsThisLabel);
    802 }
     802    /// @todo improve
     803#if 0
     804    new QIConstraintKeeper (whatsThisLabel);
     805#endif
     806}
     807
     808/// @todo possibly, remove after QIConstraintKeeper is properly done
     809/// (should be at least possible to move this functionality into it)
     810void VBoxVMSettingsDlg::processAdjustSize()             
     811{               
     812    int newHeight = minimumSize().height();             
     813    int oldHeight = height();           
     814    if (newHeight > oldHeight)           
     815        resize (minimumSize());                 
     816}               
    803817
    804818void VBoxVMSettingsDlg::updateShortcuts()
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