summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2009-12-03 10:44:49 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2009-12-03 10:44:49 (GMT)
commitd648f23094e61705ceea10b2af526872406d022a (patch)
tree18a2b59f83fab67984644030e8c1d6d770772eee /src/gui
parent6bd1139cb4c877db3d71bc6d864e2c5911c0424e (diff)
downloadQt-d648f23094e61705ceea10b2af526872406d022a.zip
Qt-d648f23094e61705ceea10b2af526872406d022a.tar.gz
Qt-d648f23094e61705ceea10b2af526872406d022a.tar.bz2
Fixes: Support gtk-enable-mnemonics on QGtkStyle
Task: QTBUG-6484 RevBy: thorbjorn Details: We currently ignore this property. It now maps to SH_UnderlineShortcut.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/styles/qgtkstyle.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp
index b32c55b..9b4d9f8 100644
--- a/src/gui/styles/qgtkstyle.cpp
+++ b/src/gui/styles/qgtkstyle.cpp
@@ -644,6 +644,14 @@ int QGtkStyle::styleHint(StyleHint hint, const QStyleOption *option, const QWidg
static bool buttonsHaveIcons = d->getGConfBool(QLS("/desktop/gnome/interface/buttons_have_icons"));
return buttonsHaveIcons;
}
+ case SH_UnderlineShortcut: {
+ gboolean underlineShortcut = true;
+ if (!d->gtk_check_version(2, 12, 0)) {
+ GtkSettings *settings = d->gtk_settings_get_default();
+ g_object_get(settings, "gtk-enable-mnemonics", &underlineShortcut,
+ }
+ return underlineShortcut;
+ }
default:
return QCleanlooksStyle::styleHint(hint, option, widget, returnData);