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/qplastiquestyle.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/qplastiquestyle.cpp')
-rw-r--r-- | src/gui/styles/qplastiquestyle.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/styles/qplastiquestyle.cpp b/src/gui/styles/qplastiquestyle.cpp index 8250013..bdd72b7 100644 --- a/src/gui/styles/qplastiquestyle.cpp +++ b/src/gui/styles/qplastiquestyle.cpp @@ -5435,6 +5435,11 @@ int QPlastiqueStyle::styleHint(StyleHint hint, const QStyleOption *option, const case SH_Menu_SubMenuPopupDelay: ret = 96; // from Plastik break; +#ifdef Q_WS_X11 + case SH_DialogButtonBox_ButtonsHaveIcons: + ret = true; + break; +#endif #ifndef Q_OS_WIN case SH_Menu_AllowActiveAndDisabled: ret = false; |