mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Ladybird: Add setting for page to open on new tab
This commit is contained in:
parent
80da16e54a
commit
17e9db4fa1
6 changed files with 26 additions and 9 deletions
|
@ -8,9 +8,9 @@
|
|||
|
||||
namespace Browser {
|
||||
|
||||
Settings::Settings(QObject* parent)
|
||||
Settings::Settings()
|
||||
{
|
||||
m_qsettings = new QSettings("Serenity", "Ladybird", parent);
|
||||
m_qsettings = new QSettings("Serenity", "Ladybird", this);
|
||||
}
|
||||
|
||||
QString Settings::homepage()
|
||||
|
@ -23,4 +23,14 @@ void Settings::set_homepage(QString const& homepage)
|
|||
m_qsettings->setValue("homepage", homepage);
|
||||
}
|
||||
|
||||
QString Settings::new_tab_page()
|
||||
{
|
||||
return m_qsettings->value("new_tab_page", "about:blank").toString();
|
||||
}
|
||||
|
||||
void Settings::set_new_tab_page(QString const& page)
|
||||
{
|
||||
m_qsettings->setValue("new_tab_page", page);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue