mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
26 lines
485 B
C++
26 lines
485 B
C++
/*
|
|
* Copyright (c) 2022, Filiph Sandström <filiph.sandstrom@filfatstudios.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "Settings.h"
|
|
|
|
namespace Browser {
|
|
|
|
Settings::Settings()
|
|
{
|
|
m_qsettings = new QSettings("Serenity", "Ladybird");
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
}
|