- Timestamp:
- Jan 23, 2007 1:12:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QIMessageBox.cpp
r1 r236 70 70 71 71 QHBox *main = new QHBox (this); 72 main->setMargin (0); 72 73 main->setSpacing (10); 73 main->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Minimum);74 74 layout->addWidget (main); 75 75 76 76 licon = new QLabel (main); 77 77 licon->setPixmap (QMessageBox::standardIcon ((QMessageBox::Icon) icon)); 78 licon->setSizePolicy (QSizePolicy::Fixed, QSizePolicy:: Preferred);78 licon->setSizePolicy (QSizePolicy::Fixed, QSizePolicy::Minimum); 79 79 licon->setAlignment (AlignHCenter | AlignTop); 80 80 81 81 message = new QVBox (main); 82 message->setMargin (0); 82 83 message->setSpacing (10); 83 84 84 85 ltext = new QLabel (text, message); 85 86 ltext->setAlignment (AlignAuto | AlignTop | ExpandTabs | WordBreak); 86 ltext->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Fixed );87 ltext->setSizePolicy (QSizePolicy::Minimum, QSizePolicy::Fixed, true); 87 88 88 89 dbox = new QVBox (this); 89 dbox->set SizePolicy (QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);90 dbox->setMargin (0); 90 91 dbox->setSpacing (10); 91 92 layout->addWidget (dbox); … … 98 99 dtext->setMinimumSize (40 * fm.width ('m'), fm.lineSpacing() * 6); 99 100 } 100 dtext->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding);101 101 dtext->setReadOnly (true); 102 102 dtext->setWrapPolicy (QTextEdit::AtWordOrDocumentBoundary); 103 dtext->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::MinimumExpanding); 103 104 104 105 /* cbflag has no parent initially, setDetailsShown() will do that */
Note:
See TracChangeset
for help on using the changeset viewer.