2022-07-14 03:41:13 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Settings.h"
|
|
|
|
|
|
|
|
namespace Browser {
|
|
|
|
|
2022-10-01 18:46:24 +00:00
|
|
|
Settings::Settings(QObject* parent)
|
2022-07-14 03:41:13 +00:00
|
|
|
{
|
2022-10-01 18:46:24 +00:00
|
|
|
m_qsettings = new QSettings("Serenity", "Ladybird", parent);
|
2022-07-14 03:41:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QString Settings::homepage()
|
|
|
|
{
|
|
|
|
return m_qsettings->value("homepage", "https://www.serenityos.org/").toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Settings::set_homepage(QString const& homepage)
|
|
|
|
{
|
|
|
|
m_qsettings->setValue("homepage", homepage);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|