VirtualBox

Changeset 4003 in vbox for trunk


Ignore:
Timestamp:
Aug 2, 2007 12:14:51 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
23429
Message:

FE/Qt: Fixed too tall size of QIMessageBox when <nobr> is used in the message text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/QIMessageBox.cpp

    r3973 r4003  
    8383    mTextLabel = new QIRichLabel (aText, mMessageVBox);
    8484    mTextLabel->setAlignment (AlignAuto | AlignTop | ExpandTabs | WordBreak);
    85     mTextLabel->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Fixed, true);
     85    mTextLabel->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Preferred, true);
     86    mTextLabel->setMinimumWidth (mTextLabel->sizeHint().width());
    8687
    8788    mFlagCB_Main = new QCheckBox (mMessageVBox);
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