summaryrefslogtreecommitdiffstats
path: root/kcontrol/konsole/kcmkonsole.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2013-11-16 15:46:35 +0100
committerSlávek Banko <[email protected]>2013-11-16 15:50:33 +0100
commitc244bac1537175f6219fa778a13acfedeaf8b304 (patch)
tree3a261aa1df6beb374baeec8f8dac23840feb49b9 /kcontrol/konsole/kcmkonsole.cpp
parent6409e49025dc64eb11490091692d03421c9db1ea (diff)
downloadtdebase-c244bac1537175f6219fa778a13acfedeaf8b304.tar.gz
tdebase-c244bac1537175f6219fa778a13acfedeaf8b304.zip
Add option to enable accelerators in Konsole menu bar
Add default shortcut for show/hide Konsole menu bar This resolves Bug 1701
Diffstat (limited to 'kcontrol/konsole/kcmkonsole.cpp')
-rw-r--r--kcontrol/konsole/kcmkonsole.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/kcontrol/konsole/kcmkonsole.cpp b/kcontrol/konsole/kcmkonsole.cpp
index 275f06aa2..8c7892083 100644
--- a/kcontrol/konsole/kcmkonsole.cpp
+++ b/kcontrol/konsole/kcmkonsole.cpp
@@ -72,6 +72,7 @@ KCMKonsole::KCMKonsole(TQWidget * parent, const char *name, const TQStringList&)
connect(dialog->line_spacingSB,TQT_SIGNAL(valueChanged(int)), TQT_SLOT( changed() ));
connect(dialog->matchTabWinTitleCB,TQT_SIGNAL(toggled(bool)), TQT_SLOT( changed() ));
connect(dialog->tabsCycleWheel,TQT_SIGNAL(toggled(bool)), TQT_SLOT( changed() ));
+ connect(dialog->menuAccelerators,TQT_SIGNAL(toggled(bool)), TQT_SLOT( changed() ));
connect(dialog->silence_secondsSB,TQT_SIGNAL(valueChanged(int)), TQT_SLOT( changed() ));
connect(dialog->word_connectorLE,TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT( changed() ));
connect(dialog->SchemaEditor1, TQT_SIGNAL(changed()), TQT_SLOT( changed() ));
@@ -97,6 +98,7 @@ void KCMKonsole::load(bool useDefaults)
dialog->bidiCB->setChecked(bidiOrig);
dialog->matchTabWinTitleCB->setChecked(config.readBoolEntry("MatchTabWinTitle",false));
dialog->tabsCycleWheel->setChecked(config.readBoolEntry("TabsCycleWheel",true));
+ dialog->menuAccelerators->setChecked(config.readBoolEntry("MenuAccelerators",false));
dialog->warnCB->setChecked(config.readBoolEntry("WarnQuit",true));
dialog->ctrldragCB->setChecked(config.readBoolEntry("CtrlDrag",true));
dialog->cutToBeginningOfLineCB->setChecked(config.readBoolEntry("CutToBeginningOfLine",false));
@@ -136,6 +138,7 @@ void KCMKonsole::save()
config.writeEntry("EnableBidi", bidiNew);
config.writeEntry("MatchTabWinTitle", dialog->matchTabWinTitleCB->isChecked());
config.writeEntry("TabsCycleWheel", dialog->tabsCycleWheel->isChecked());
+ config.writeEntry("MenuAccelerators", dialog->menuAccelerators->isChecked());
config.writeEntry("WarnQuit", dialog->warnCB->isChecked());
config.writeEntry("CtrlDrag", dialog->ctrldragCB->isChecked());
config.writeEntry("CutToBeginningOfLine", dialog->cutToBeginningOfLineCB->isChecked());