m_editableUrl(nullptr),
m_showFullPath(nullptr),
m_filterBar(nullptr),
- m_showFullPathInTitlebar(nullptr)
+ m_showFullPathInTitlebar(nullptr),
+ m_openExternallyCalledFolderInNewTab(nullptr)
{
QFormLayout* topLayout = new QFormLayout(this);
// create 'Home URL' editor
QHBoxLayout* homeUrlBoxLayout = new QHBoxLayout();
- homeUrlBoxLayout->setMargin(0);
+ homeUrlBoxLayout->setContentsMargins(0, 0, 0, 0);
m_homeUrl = new QLineEdit();
m_homeUrl->setClearButtonEnabled(true);
this, &StartupSettingsPage::selectHomeUrl);
QHBoxLayout* buttonBoxLayout = new QHBoxLayout();
- buttonBoxLayout->setMargin(0);
+ buttonBoxLayout->setContentsMargins(0, 0, 0, 0);
QPushButton* useCurrentButton = new QPushButton(i18nc("@action:button", "Use Current Location"));
buttonBoxLayout->addWidget(useCurrentButton);
this, &StartupSettingsPage::useDefaultLocation);
QVBoxLayout* homeBoxLayout = new QVBoxLayout();
- homeBoxLayout->setMargin(0);
+ homeBoxLayout->setContentsMargins(0, 0, 0, 0);
homeBoxLayout->addLayout(homeUrlBoxLayout);
homeBoxLayout->addLayout(buttonBoxLayout);
topLayout->addRow(QString(), m_filterBar);
m_showFullPathInTitlebar = new QCheckBox(i18nc("@option:check Startup Settings", "Show full path in title bar"));
topLayout->addRow(QString(), m_showFullPathInTitlebar);
+ m_openExternallyCalledFolderInNewTab = new QCheckBox(i18nc("@option:check Startup Settings", "Open new folders in tabs"));
+ topLayout->addRow(QString(), m_openExternallyCalledFolderInNewTab);
loadSettings();
connect(m_showFullPath, &QCheckBox::toggled, this, &StartupSettingsPage::slotSettingsChanged);
connect(m_filterBar, &QCheckBox::toggled, this, &StartupSettingsPage::slotSettingsChanged);
connect(m_showFullPathInTitlebar, &QCheckBox::toggled, this, &StartupSettingsPage::slotSettingsChanged);
+ connect(m_openExternallyCalledFolderInNewTab, &QCheckBox::toggled, this, &StartupSettingsPage::slotSettingsChanged);
}
StartupSettingsPage::~StartupSettingsPage()
settings->setShowFullPath(m_showFullPath->isChecked());
settings->setFilterBar(m_filterBar->isChecked());
settings->setShowFullPathInTitlebar(m_showFullPathInTitlebar->isChecked());
-
+ settings->setOpenExternallyCalledFolderInNewTab(m_openExternallyCalledFolderInNewTab->isChecked());
settings->save();
}
m_showFullPath->setChecked(GeneralSettings::showFullPath());
m_filterBar->setChecked(GeneralSettings::filterBar());
m_showFullPathInTitlebar->setChecked(GeneralSettings::showFullPathInTitlebar());
+ m_openExternallyCalledFolderInNewTab->setChecked(GeneralSettings::openExternallyCalledFolderInNewTab());
}