diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-08-13 00:53:15 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-08-13 00:53:15 -0500 |
commit | bbd076f4e78ef177369be78fb35eae14891ba70c (patch) | |
tree | 1d4fd0c599884dbcd906eeb495a98984d6f34412 /tdefx | |
parent | 91bf63b43bf4cc9ff640bd3c11549644cef05e6e (diff) | |
download | tdelibs-bbd076f4e78ef177369be78fb35eae14891ba70c.tar.gz tdelibs-bbd076f4e78ef177369be78fb35eae14891ba70c.zip |
Add AutoHideAccelerators option to kstyle
Diffstat (limited to 'tdefx')
-rw-r--r-- | tdefx/kstyle.cpp | 5 |
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; |