diff options
author | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-10-30 12:22:45 (GMT) |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-10-30 12:22:45 (GMT) |
commit | e535343ee9502d48cdc282a6c91da9655d8205c6 (patch) | |
tree | b5af09b037c9ea55584c0b7c23bc91d64328dfcd /src/gui/styles/qcommonstyle.cpp | |
parent | e336c7a35f98d53f5746bbe8c0c7fbbaa0cf96e9 (diff) | |
download | Qt-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.cpp | 8 |
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; |