VirtualBox

Changeset 17365 in vbox


Ignore:
Timestamp:
Mar 4, 2009 9:16:40 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: 3693: Guru meditation crashes the GUI - should be fixed.

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

Legend:

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

    r17131 r17365  
    5454    /* Setup tool-button */
    5555    mButton->setAutoRaise (true);
    56     mButton->setFixedSize (14, 16);
     56    mButton->setFixedSize (17, 16);
    5757    mButton->setFocusPolicy (Qt::NoFocus);
    5858    mButton->setStyleSheet ("QToolButton {border: 0px none black;}");
     
    6262    /* Setup text-label */
    6363    mLabel->setBuddy (mButton);
    64     mLabel->setStyleSheet ("QLabel {padding: 0px 1px 0px 1px;}");
     64    mLabel->setStyleSheet ("QLabel {padding: 2px 0px 2px 0px;}");
    6565
    6666    /* Setup main-layout */
    6767    QHBoxLayout *mainLayout = new QHBoxLayout (this);
    6868    VBoxGlobal::setLayoutMargin (mainLayout, 0);
     69    mainLayout->setSpacing (0);
    6970    mainLayout->addWidget (mButton);
    7071    mainLayout->addWidget (mLabel);
     
    531532void QIMessageBox::setDetailsText (const QString &aText)
    532533{
    533     QStringList parts (aText.split ("<!--EOM-->"));
     534    QStringList parts (aText.split ("<!--EOM-->", QString::SkipEmptyParts));
    534535    mTextLabel->setText (mTextLabel->text() + parts [0]);
    535     mDetailsText->setText (parts [1]);
     536    if (parts.size() > 1) mDetailsText->setText (parts [1]);
    536537}
    537538
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r17125 r17365  
    657657             .arg (vbox.GetSettingsFilePath()),
    658658        !res.isOk() ? formatErrorInfo (res)
    659                     : QString ("<p>%1</p>").arg (VBoxGlobal::highlight (error)));
     659                    : QString ("<p>%1</p>").arg (error));
    660660}
    661661
     
    21812181
    21822182    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);
    21882185
    21892186    if (!errorID.isEmpty())
Note: See TracChangeset for help on using the changeset viewer.

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