diff options
author | Timothy Pearson <[email protected]> | 2012-08-13 00:59:20 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-08-13 00:59:20 -0500 |
commit | d50125d0ec338d7b488f444d128c0ab92fff1cc5 (patch) | |
tree | 590d31493df3614b5a1301a66e83774a8cdd0ac3 /kcontrol/style/kcmstyle.cpp | |
parent | 5d3183a814e47b543692f68695c29f6e4ac9d2bd (diff) | |
download | tdebase-d50125d0ec338d7b488f444d128c0ab92fff1cc5.tar.gz tdebase-d50125d0ec338d7b488f444d128c0ab92fff1cc5.zip |
Add accelerator hiding option to style control module
Diffstat (limited to 'kcontrol/style/kcmstyle.cpp')
-rw-r--r-- | kcontrol/style/kcmstyle.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kcontrol/style/kcmstyle.cpp b/kcontrol/style/kcmstyle.cpp index fa52de218..f20477246 100644 --- a/kcontrol/style/kcmstyle.cpp +++ b/kcontrol/style/kcmstyle.cpp @@ -183,6 +183,8 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name ) gbWidgetStyleLayout->addWidget( cbIconsOnButtons ); cbScrollablePopupMenus = new TQCheckBox( i18n("Enable &scrolling in popup menus"), gbWidgetStyle ); gbWidgetStyleLayout->addWidget( cbScrollablePopupMenus ); + cbAutoHideAccelerators = new TQCheckBox( i18n("Hide &accelerators when not in use"), gbWidgetStyle ); + gbWidgetStyleLayout->addWidget( cbAutoHideAccelerators ); cbEnableTooltips = new TQCheckBox( i18n("E&nable tooltips"), gbWidgetStyle ); gbWidgetStyleLayout->addWidget( cbEnableTooltips ); cbTearOffHandles = new TQCheckBox( i18n("Show tear-off handles in &popup menus"), gbWidgetStyle ); @@ -382,6 +384,7 @@ KCMStyle::KCMStyle( TQWidget* parent, const char* name ) connect( cbEnableTooltips, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); connect( cbIconsOnButtons, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); connect( cbScrollablePopupMenus,TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); + connect( cbAutoHideAccelerators,TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); connect( cbTearOffHandles, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setEffectsDirty())); connect( comboToolbarIcons, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setToolbarsDirty())); @@ -603,6 +606,7 @@ void KCMStyle::save() { // Braces force a TQSettings::sync() TQSettings settings; // Only for KStyle stuff settings.writeEntry("/KStyle/Settings/ScrollablePopupMenus", cbScrollablePopupMenus->isChecked() ); + settings.writeEntry("/KStyle/Settings/AutoHideAccelerators", cbAutoHideAccelerators->isChecked() ); } config.writeEntry( "EffectNoTooltip", !cbEnableTooltips->isChecked(), true, true ); @@ -1031,6 +1035,7 @@ void KCMStyle::loadMisc( KConfig& config ) TQSettings settings; cbScrollablePopupMenus->setChecked(settings.readBoolEntry("/KStyle/Settings/ScrollablePopupMenus", false)); + cbAutoHideAccelerators->setChecked(settings.readBoolEntry("/KStyle/Settings/AutoHideAccelerators", false)); m_bToolbarsDirty = false; } @@ -1090,6 +1095,7 @@ void KCMStyle::addWhatsThis() TQWhatsThis::add( cbIconsOnButtons, i18n( "If you enable this option, TDE Applications will " "show small icons alongside some important buttons.") ); TQWhatsThis::add( cbScrollablePopupMenus, i18n( "If you enable this option, pop-up menus will scroll if vertical space is exhausted." ) ); + TQWhatsThis::add( cbAutoHideAccelerators, i18n( "If you enable this option, keyboard accelerator hints will be hidden unless the first accelerator key in the sequence (normally Alt) is depressed." ) ); TQWhatsThis::add( cbTearOffHandles, i18n( "If you enable this option some pop-up menus will " "show so called tear-off handles. If you click them, you get the menu " "inside a widget. This can be very helpful when performing " |