summaryrefslogtreecommitdiffstats
path: root/tdefx/kstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdefx/kstyle.cpp')
-rw-r--r--tdefx/kstyle.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tdefx/kstyle.cpp b/tdefx/kstyle.cpp
index a1a95e1fd..38b568dd6 100644
--- a/tdefx/kstyle.cpp
+++ b/tdefx/kstyle.cpp
@@ -165,6 +165,7 @@ struct KStylePrivate
bool useFilledFrameWorkaround : 1;
bool etchDisabledText : 1;
bool scrollablePopupmenus : 1;
+ bool autoHideAccelerators : 0;
bool menuAltKeyNavigation : 1;
bool menuDropShadow : 1;
bool sloppySubMenus : 1;
@@ -201,6 +202,7 @@ KStyle::KStyle( KStyleFlags flags, KStyleScrollBarType sbtype )
d->etchDisabledText = settings.readBoolEntry("/KStyle/Settings/EtchDisabledText", true);
d->menuAltKeyNavigation = settings.readBoolEntry("/KStyle/Settings/MenuAltKeyNavigation", true);
d->scrollablePopupmenus = settings.readBoolEntry("/KStyle/Settings/ScrollablePopupMenus", false);
+ d->autoHideAccelerators = settings.readBoolEntry("/KStyle/Settings/AutoHideAccelerators", false);
d->menuDropShadow = settings.readBoolEntry("/KStyle/Settings/MenuDropShadow", false);
d->semiTransparentRubberband = settings.readBoolEntry("/KStyle/Settings/SemiTransparentRubberband", false);
d->menuHandler = NULL;
@@ -1894,6 +1896,9 @@ int KStyle::styleHint( TQ_StyleHint sh, TQStyleControlElementData ceData, Contro
case SH_PopupMenu_Scrollable:
return d->scrollablePopupmenus ? 1 : 0;
+ case SH_HideUnderlineAcceleratorWhenAltUp:
+ return d->autoHideAccelerators ? 1 : 0;
+
case SH_MenuBar_AltKeyNavigation:
return d->menuAltKeyNavigation ? 1 : 0;