summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@nokia.com>2009-12-03 12:52:53 +0100
committerAndy Shaw <andy.shaw@nokia.com>2009-12-03 12:52:53 +0100
commitad8e34ff448b4e261da65cc5210664f150736bba (patch)
tree18a2b59f83fab67984644030e8c1d6d770772eee /src/gui
parent4159207860b68276a6f2f72efec1de0aac620a92 (diff)
parentd648f23094e61705ceea10b2af526872406d022a (diff)
downloadqt4-tools-ad8e34ff448b4e261da65cc5210664f150736bba.tar.gz
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
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 b32c55b337..9b4d9f83cf 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);