Changeset 20983 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 26, 2009 3:05:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSettingsDialog.cpp
r19837 r20983 225 225 226 226 if (!mErrorString.isEmpty()) 227 {228 #ifndef Q_WS_MAC229 227 mLbWhatsThis->setText (mErrorString); 230 #else /* Q_WS_MAC */231 mIconLabel->setToolTip (mErrorString);232 #endif /* Q_WS_MAC */233 }234 228 else 235 229 updateWhatsThis (true); … … 247 241 248 242 if (!mWarnString.isEmpty()) 249 {250 #ifndef Q_WS_MAC251 243 mLbWhatsThis->setText (mWarnString); 252 #else /* Q_WS_MAC */253 mIconLabel->setToolTip (mWarnString);254 #endif /* Q_WS_MAC */255 }256 244 else 257 245 updateWhatsThis (true); … … 310 298 mIconLabel->setWarningPixmap (mErrorIcon); 311 299 mIconLabel->setWarningText (mErrorHint); 312 mIconLabel->setToolTip (""); 300 #ifdef Q_WS_MAC 301 mIconLabel->setToolTip (mErrorString); 302 #endif /* Q_WS_MAC */ 313 303 mIconLabel->setVisible (!mValid); 314 304 mButtonBox->button (QDialogButtonBox::Ok)->setEnabled (mValid); … … 343 333 mIconLabel->setWarningPixmap (mWarnIcon); 344 334 mIconLabel->setWarningText (mWarnHint); 345 mIconLabel->setToolTip (""); 335 #ifdef Q_WS_MAC 336 mIconLabel->setToolTip (mWarnString); 337 #endif /* Q_WS_MAC */ 346 338 mIconLabel->setVisible (!mSilent); 347 339 } … … 372 364 } 373 365 366 #ifndef Q_WS_MAC 374 367 if (text.isEmpty() && !mErrorString.isEmpty()) 375 368 text = mErrorString; … … 380 373 381 374 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 */ 382 379 } 383 380
Note:
See TracChangeset
for help on using the changeset viewer.