showErrorMessage(errorMessage);
});
#endif
+
+ connect(GeneralSettings::self(), &GeneralSettings::splitViewChanged,
+ this, &DolphinMainWindow::slotSplitViewChanged);
}
DolphinMainWindow::~DolphinMainWindow()
m_tabWidget->openNewTab(url, QUrl());
}
+void DolphinMainWindow::slotSplitViewChanged()
+{
+ m_tabWidget->currentTabPage()->setSplitViewEnabled(GeneralSettings::splitView(), WithAnimation);
+ updateSplitAction();
+}
+
void DolphinMainWindow::openInNewTab()
{
const KFileItemList& list = m_activeViewContainer->view()->selectedItems();
m_tabWidget->refreshViews();
if (GeneralSettings::modifiedStartupSettings()) {
- // The startup settings have been changed by the user (see bug #254947).
- // Synchronize the split-view setting with the active view:
- const bool splitView = GeneralSettings::splitView();
- m_tabWidget->currentTabPage()->setSplitViewEnabled(splitView, WithAnimation);
- updateSplitAction();
updateWindowTitle();
}
*/
void openNewTab(const QUrl& url);
+ /** @see GeneralSettings::splitViewChanged() */
+ void slotSplitViewChanged();
+
Q_SIGNALS:
/**
* Is sent if the selection of the currently active view has
<include>KCompletion</include>
<kcfgfile name="dolphinrc"/>
<signal name="sortingChoiceChanged" />
+ <signal name="splitViewChanged" />
<group name="General">
<entry name="EditableUrl" type="Bool">
<label>Should the URL be editable for the user</label>
<entry name="SplitView" type="Bool">
<label>Split the view into two panes</label>
<default>false</default>
+ <emit signal="splitViewChanged" />
</entry>
<entry name="FilterBar" type="Bool">
<label>Should the filter bar be shown</label>