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/qmotifstyle.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/qmotifstyle.cpp')
-rw-r--r-- | src/gui/styles/qmotifstyle.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/styles/qmotifstyle.cpp b/src/gui/styles/qmotifstyle.cpp index 3550408..904a8f56 100644 --- a/src/gui/styles/qmotifstyle.cpp +++ b/src/gui/styles/qmotifstyle.cpp @@ -2683,6 +2683,9 @@ QMotifStyle::styleHint(StyleHint hint, const QStyleOption *opt, const QWidget *w case SH_LineEdit_PasswordCharacter: ret = '*'; break; + case SH_DialogButtonBox_ButtonsHaveIcons: + ret = 0; + break; default: ret = QCommonStyle::styleHint(hint, opt, widget, returnData); break; |