Changeset 9261 in vbox for trunk/src/VBox
- Timestamp:
- May 30, 2008 4:17:33 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h
r9107 r9261 34 34 #include <QPixmap> 35 35 #include <QMenu> 36 #include <QStyle> 36 37 37 38 class QAction; … … 521 522 const char *aActive = NULL, 522 523 const char *aSmallActive = NULL); 524 525 static QIcon standardIcon (QStyle::StandardPixmap aStandard); 523 526 524 527 static void setTextLabel (QToolButton *aToolButton, const QString &aTextLabel); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxDiskImageManagerDlg.cpp
r9257 r9261 219 219 mType = VBoxDefs::InvalidType; 220 220 221 mIconInaccessible = style()->standardIcon (QStyle::SP_MessageBoxWarning);222 mIconErroneous = style()->standardIcon (QStyle::SP_MessageBoxCritical);221 mIconInaccessible = vboxGlobal().standardIcon (QStyle::SP_MessageBoxWarning); 222 mIconErroneous = vboxGlobal().standardIcon (QStyle::SP_MessageBoxCritical); 223 223 mIconHD = VBoxGlobal::iconSet (":/hd_16px.png", ":/hd_disabled_16px.png"); 224 224 mIconCD = VBoxGlobal::iconSet (":/cd_16px.png", ":/cd_disabled_16px.png"); -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r9107 r9261 2749 2749 } 2750 2750 2751 QIcon VBoxGlobal::standardIcon (QStyle::StandardPixmap aStandard) 2752 { 2753 #ifdef Q_WS_MAC 2754 /* At least in Qt 4.3.4/4.4 RC1 SP_MessageBoxWarning is the application 2755 * icon. So change this to the critical icon. (Maybe this would be 2756 * fixed in a later Qt version) */ 2757 if (aStandard == QStyle::SP_MessageBoxWarning) 2758 return QApplication::style()->standardIcon (QStyle::SP_MessageBoxCritical); 2759 #endif /* Q_WS_MAC */ 2760 return QApplication::style()->standardIcon (aStandard); 2761 } 2762 2751 2763 /** 2752 2764 * Replacement for QToolButton::setTextLabel() that handles the shortcut
Note:
See TracChangeset
for help on using the changeset viewer.