mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Changed default arg for the setSplitViewEnabled
This commit is contained in:
parent
ee1231541a
commit
e7f6a1010a
|
@ -527,7 +527,7 @@ void DolphinMainWindow::toggleSplitView()
|
|||
void DolphinMainWindow::toggleSplitStash()
|
||||
{
|
||||
DolphinTabPage* tabPage = m_tabWidget->currentTabPage();
|
||||
tabPage->setSplitViewEnabled(!tabPage->splitViewEnabled(), true);
|
||||
tabPage->setSplitViewEnabled(!tabPage->splitViewEnabled(), QUrl("stash:/"));
|
||||
}
|
||||
|
||||
void DolphinMainWindow::reloadView()
|
||||
|
|
|
@ -71,13 +71,13 @@ bool DolphinTabPage::splitViewEnabled() const
|
|||
return m_splitViewEnabled;
|
||||
}
|
||||
|
||||
void DolphinTabPage::setSplitViewEnabled(bool enabled, bool stash /*= false*/)
|
||||
void DolphinTabPage::setSplitViewEnabled(bool enabled, QUrl secondaryUrl /*= QUrl()*/)
|
||||
{
|
||||
if (m_splitViewEnabled != enabled) {
|
||||
m_splitViewEnabled = enabled;
|
||||
|
||||
if (enabled) {
|
||||
const QUrl& url = (stash) ? QUrl("stash:/") : m_primaryViewContainer->url();
|
||||
const QUrl& url = (secondaryUrl.isEmpty()) ? m_primaryViewContainer->url() : secondaryUrl;
|
||||
m_secondaryViewContainer = createViewContainer(url);
|
||||
|
||||
const bool placesSelectorVisible = m_primaryViewContainer->urlNavigator()->isPlacesSelectorVisible();
|
||||
|
|
|
@ -50,7 +50,7 @@ public:
|
|||
*
|
||||
* If \a enabled is true, it creates a secondary view with the url of the primary view.
|
||||
*/
|
||||
void setSplitViewEnabled(bool enabled, bool stash = false);
|
||||
void setSplitViewEnabled(bool enabled, QUrl secondaryUrl = QUrl());
|
||||
|
||||
/**
|
||||
* @return The primary view containter.
|
||||
|
|
Loading…
Reference in a new issue