Commit 9f8dcc2b authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

add config UI for auto hide tabs

parent 97fb16af
Pipeline #157997 passed with stage
in 8 minutes and 22 seconds
......@@ -153,6 +153,12 @@ void KateConfigDialog::addBehaviorPage()
vbox->addWidget(new QLabel(
i18n("A high limit can increase the window size, please enable 'Allow tab scrolling' to prevent it. Unlimited tabs are always scrollable.")));
m_autoHideTabs = new QCheckBox(i18n("&Auto hide tabs"), buttonGroup);
m_autoHideTabs->setChecked(cgGeneral.readEntry("Auto Hide Tabs", true));
m_autoHideTabs->setToolTip(i18n("When checked tabs will be hidden if only one document is open."));
connect(m_autoHideTabs, &QCheckBox::toggled, this, &KateConfigDialog::slotChanged);
m_showTabCloseButton = new QCheckBox(i18n("&Show close button"), buttonGroup);
m_showTabCloseButton->setChecked(cgGeneral.readEntry("Show Tabs Close Button", true));
m_showTabCloseButton->setToolTip(i18n("When checked each tab will display a close button."));
......@@ -400,6 +406,8 @@ void KateConfigDialog::slotApply()
cg.writeEntry("Tabbar Tab Limit", m_tabLimit->value());
cg.writeEntry("Auto Hide Tabs", m_autoHideTabs->isChecked());
cg.writeEntry("Show Tabs Close Button", m_showTabCloseButton->isChecked());
cg.writeEntry("Expand Tabs", m_expandTabs->isChecked());
......@@ -90,6 +90,7 @@ private:
QCheckBox *m_modNotifications;
QComboBox *m_cmbQuickOpenListMode;
QSpinBox *m_tabLimit;
QCheckBox *m_autoHideTabs;
QCheckBox *m_showTabCloseButton;
QCheckBox *m_expandTabs;
QCheckBox *m_tabDoubleClickNewDocument;
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