diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2009-09-07 14:26:11 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2009-09-07 14:28:15 (GMT) |
commit | 0f4c89bc38e124a8b308f25754e84642194cc2a6 (patch) | |
tree | ae9293adca0f1378a8845372dc8ba29f525739c8 /src/gui/styles/qwindowsstyle.cpp | |
parent | 5c15ea9cdfeb39d0f040e144756a7d4e2bd23670 (diff) | |
download | Qt-0f4c89bc38e124a8b308f25754e84642194cc2a6.zip Qt-0f4c89bc38e124a8b308f25754e84642194cc2a6.tar.gz Qt-0f4c89bc38e124a8b308f25754e84642194cc2a6.tar.bz2 |
Use icons on QDialogButtonBox in KDE
Oxygen did not use icons in dialogs. This is obviously
incorrect compared with other KDE apps. We changed common style
to enable button icons by default on X11 and explicitly
disabled them for Windows and Motif styles.
We also updated the icons for YES and NO actions to use
dialog-ok and process-stop to reflect the usaged in
KDE itself.
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/styles/qwindowsstyle.cpp')
-rw-r--r-- | src/gui/styles/qwindowsstyle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/styles/qwindowsstyle.cpp b/src/gui/styles/qwindowsstyle.cpp index 31f96c3..2a88578 100644 --- a/src/gui/styles/qwindowsstyle.cpp +++ b/src/gui/styles/qwindowsstyle.cpp @@ -1206,6 +1206,9 @@ int QWindowsStyle::styleHint(StyleHint hint, const QStyleOption *opt, const QWid case SH_ItemView_ArrowKeysNavigateIntoChildren: ret = true; break; + case SH_DialogButtonBox_ButtonsHaveIcons: + ret = 0; + break; default: ret = QCommonStyle::styleHint(hint, opt, widget, returnData); break; |