VirtualBox

Changeset 20983 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 26, 2009 3:05:25 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: Show mostly "Whats this" messages as tooltip.

File:
1 edited

Legend:

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

    r19837 r20983  
    225225
    226226    if (!mErrorString.isEmpty())
    227     {
    228 #ifndef Q_WS_MAC
    229227        mLbWhatsThis->setText (mErrorString);
    230 #else /* Q_WS_MAC */
    231         mIconLabel->setToolTip (mErrorString);
    232 #endif /* Q_WS_MAC */
    233     }
    234228    else
    235229        updateWhatsThis (true);
     
    247241
    248242    if (!mWarnString.isEmpty())
    249     {
    250 #ifndef Q_WS_MAC
    251243        mLbWhatsThis->setText (mWarnString);
    252 #else /* Q_WS_MAC */
    253         mIconLabel->setToolTip (mWarnString);
    254 #endif /* Q_WS_MAC */
    255     }
    256244    else
    257245        updateWhatsThis (true);
     
    310298        mIconLabel->setWarningPixmap (mErrorIcon);
    311299        mIconLabel->setWarningText (mErrorHint);
    312         mIconLabel->setToolTip ("");
     300#ifdef Q_WS_MAC
     301        mIconLabel->setToolTip (mErrorString);
     302#endif /* Q_WS_MAC */
    313303        mIconLabel->setVisible (!mValid);
    314304        mButtonBox->button (QDialogButtonBox::Ok)->setEnabled (mValid);
     
    343333        mIconLabel->setWarningPixmap (mWarnIcon);
    344334        mIconLabel->setWarningText (mWarnHint);
    345         mIconLabel->setToolTip ("");
     335#ifdef Q_WS_MAC
     336        mIconLabel->setToolTip (mWarnString);
     337#endif /* Q_WS_MAC */
    346338        mIconLabel->setVisible (!mSilent);
    347339    }
     
    372364    }
    373365
     366#ifndef Q_WS_MAC
    374367    if (text.isEmpty() && !mErrorString.isEmpty())
    375368        text = mErrorString;
     
    380373
    381374    mLbWhatsThis->setText (text);
     375#else /* Q_WS_MAC */
     376    if (widget && !text.isEmpty())
     377        widget->setToolTip (QString("<qt>%1</qt>").arg(text));
     378#endif /* Q_WS_MAC */
    382379}
    383380
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