Commit 54da0c7f authored by loh tar's avatar loh tar
Browse files

Ignore the option syncWithTabs for the bottom Sidebar

The bottom bar is too special with the integrated status bar and the asymmetric
placement of tabs and tool views. With this option looks and works that never nice.
parent 8c0df846
......@@ -144,6 +144,7 @@ void KateConfigDialog::addBehaviorPage()
// modified files notification
m_modNotifications = new QCheckBox(i18n("Use a separate &dialog for handling externally modified files"), buttonGroup);
m_modNotifications->setChecked(m_mainWindow->modNotificationEnabled());
m_modNotifications->setCursor(Qt::WhatsThisCursor);
m_modNotifications->setWhatsThis(
i18n("If enabled, a modal dialog will be used to show all of the modified files. "
"If not enabled, you will be individually asked what to do for each modified file "
......@@ -153,14 +154,16 @@ void KateConfigDialog::addBehaviorPage()
vbox->addWidget(m_modNotifications);
buttonGroup->setLayout(vbox);
// show text for the left and right sidebars?
// only useful for Kate
if (KateApp::isKate()) {
QGroupBox *buttonGroup = new QGroupBox(i18n("&Sidebars"), generalFrame);
layout->addWidget(buttonGroup);
QVBoxLayout *vbox = new QVBoxLayout;
m_syncSectionSizeWithSidebarTabs = new QCheckBox(i18n("Sync section size with tab positions"), buttonGroup);
m_syncSectionSizeWithSidebarTabs->setChecked(cgGeneral.readEntry("Sync section size with tab positions", false));
m_syncSectionSizeWithSidebarTabs->setCursor(Qt::WhatsThisCursor);
m_syncSectionSizeWithSidebarTabs->setWhatsThis(
i18n("When enabled the section size will be determined by the position of the tabs.\n"
"This option does not affect the bottom sidebar."));
connect(m_syncSectionSizeWithSidebarTabs, &QCheckBox::toggled, this, &KateConfigDialog::slotChanged);
vbox->addWidget(m_syncSectionSizeWithSidebarTabs);
......
......@@ -541,6 +541,11 @@ void Sidebar::readConfig()
m_syncWithTabs = syncWithTabs;
needsUpdate = true;
}
// Ignore the option for the bottom bar! Due to it's special design would that never looks good
if (position() == KMultiTabBar::Bottom) {
m_syncWithTabs = false;
needsUpdate = false;
}
// shall we show text for the left and right bars?
const bool showTextForLeftRight = cgGeneral.readEntry("Show text for left and right sidebar", false);
......
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