From bbd076f4e78ef177369be78fb35eae14891ba70c Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 13 Aug 2012 00:53:15 -0500 Subject: [PATCH] Add AutoHideAccelerators option to kstyle --- tdefx/kstyle.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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;