summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@nokia.com>2009-10-30 12:22:45 (GMT)
committerMorten Johan Sørvig <morten.sorvig@nokia.com>2009-10-30 12:22:45 (GMT)
commite535343ee9502d48cdc282a6c91da9655d8205c6 (patch)
treeb5af09b037c9ea55584c0b7c23bc91d64328dfcd /src/gui/styles/qcommonstyle.cpp
parente336c7a35f98d53f5746bbe8c0c7fbbaa0cf96e9 (diff)
downloadQt-e535343ee9502d48cdc282a6c91da9655d8205c6.zip
Qt-e535343ee9502d48cdc282a6c91da9655d8205c6.tar.gz
Qt-e535343ee9502d48cdc282a6c91da9655d8205c6.tar.bz2
Improve the message box icon selection on Mac.
Use a question mark for SP_MessageBoxQuestion, and then increasingly scary exclamation marks for Information, Warning, and Critical.
Diffstat (limited to 'src/gui/styles/qcommonstyle.cpp')
-rw-r--r--src/gui/styles/qcommonstyle.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp
index 70d130a..6ce0f9d 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -5664,10 +5664,16 @@ QIcon QCommonStyle::standardIconImplementation(StandardPixmap standardIcon, cons
OSType iconType = 0;
switch (standardIcon) {
case QStyle::SP_MessageBoxQuestion:
+ iconType = kQuestionMarkIcon;
+ break;
case QStyle::SP_MessageBoxInformation:
+ iconType = kAlertNoteIcon;
+ break;
case QStyle::SP_MessageBoxWarning:
+ iconType = kAlertCautionIcon;
+ break;
case QStyle::SP_MessageBoxCritical:
- iconType = kGenericApplicationIcon;
+ iconType = kAlertStopIcon;
break;
case SP_DesktopIcon:
iconType = kDesktopIcon;