Changeset 17365 in vbox
- Timestamp:
- Mar 4, 2009 9:16:40 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
-
QIMessageBox.cpp (modified) (3 diffs)
-
VBoxProblemReporter.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QIMessageBox.cpp
r17131 r17365 54 54 /* Setup tool-button */ 55 55 mButton->setAutoRaise (true); 56 mButton->setFixedSize (1 4, 16);56 mButton->setFixedSize (17, 16); 57 57 mButton->setFocusPolicy (Qt::NoFocus); 58 58 mButton->setStyleSheet ("QToolButton {border: 0px none black;}"); … … 62 62 /* Setup text-label */ 63 63 mLabel->setBuddy (mButton); 64 mLabel->setStyleSheet ("QLabel {padding: 0px 1px 0px 1px;}");64 mLabel->setStyleSheet ("QLabel {padding: 2px 0px 2px 0px;}"); 65 65 66 66 /* Setup main-layout */ 67 67 QHBoxLayout *mainLayout = new QHBoxLayout (this); 68 68 VBoxGlobal::setLayoutMargin (mainLayout, 0); 69 mainLayout->setSpacing (0); 69 70 mainLayout->addWidget (mButton); 70 71 mainLayout->addWidget (mLabel); … … 531 532 void QIMessageBox::setDetailsText (const QString &aText) 532 533 { 533 QStringList parts (aText.split ("<!--EOM-->" ));534 QStringList parts (aText.split ("<!--EOM-->", QString::SkipEmptyParts)); 534 535 mTextLabel->setText (mTextLabel->text() + parts [0]); 535 mDetailsText->setText (parts [1]);536 if (parts.size() > 1) mDetailsText->setText (parts [1]); 536 537 } 537 538 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r17125 r17365 657 657 .arg (vbox.GetSettingsFilePath()), 658 658 !res.isOk() ? formatErrorInfo (res) 659 : QString ("<p>%1</p>").arg ( VBoxGlobal::highlight (error)));659 : QString ("<p>%1</p>").arg (error)); 660 660 } 661 661 … … 2181 2181 2182 2182 if (!errorMsg.isEmpty()) 2183 formatted += QString ("<table bgcolor=#FFFFFF border=0 cellspacing=0 " 2184 "cellpadding=0 width=100%>" 2185 "<tr><td><p>%1.</p></td></tr>" 2186 "</table><p></p>") 2187 .arg (VBoxGlobal::highlight (errorMsg)); 2183 formatted += QString ("<p>%1</p><!--EOM-->") 2184 .arg (errorMsg); 2188 2185 2189 2186 if (!errorID.isEmpty())
Note:
See TracChangeset
for help on using the changeset viewer.

