blob: 3e4e0fef3e8800d078ccc2c7556f720bb18435d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "Settings.h"
namespace Browser {
Settings::Settings(QObject* parent)
{
m_qsettings = new QSettings("Serenity", "Ladybird", parent);
}
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);
}
}
|