Commit f0cfdc6e authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

add config for sidebar text to behavior page

parent 026a1df6
......@@ -140,6 +140,15 @@ void KateConfigDialog::addBehaviorPage()
vbox->addWidget(m_modNotifications);
// show text for the left and right side bars?
// only useful for Kate
if (KateApp::isKate()) {
m_showTextForLeftRightSidebars = new QCheckBox(i18n("Show text for left and right side bar buttons"), buttonGroup);
m_showTextForLeftRightSidebars->setChecked(cgGeneral.readEntry("Show text for left and right sidebar", false));
connect(m_showTextForLeftRightSidebars, &QCheckBox::toggled, this, &KateConfigDialog::slotChanged);
vbox->addWidget(m_showTextForLeftRightSidebars);
}
buttonGroup->setLayout(vbox);
// tabbar => we allow to configure some limit on number of tabs to show
......@@ -406,7 +415,12 @@ void KateConfigDialog::slotApply()
// if data changed apply the kate app stuff
if (m_dataChanged) {
KConfigGroup cg = KConfigGroup(config, "General");
KConfigGroup cg(config, "General");
// only there for kate
if (m_showTextForLeftRightSidebars) {
cg.writeEntry("Show text for left and right sidebar", m_showTextForLeftRightSidebars->isChecked());
}
cg.writeEntry("Restore Window Configuration", sessionConfigUi.restoreVC->isChecked());
......
......@@ -89,6 +89,7 @@ private:
QComboBox *m_mouseBackActions = nullptr;
QComboBox *m_mouseForwardActions = nullptr;
QCheckBox *m_modNotifications;
QCheckBox *m_showTextForLeftRightSidebars = nullptr;
QComboBox *m_cmbQuickOpenListMode;
QSpinBox *m_tabLimit;
QCheckBox *m_autoHideTabs;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment