ladybird/Ladybird/Settings.cpp

27 lines
508 B
C++
Raw Normal View History

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 {
Settings::Settings(QObject* parent)
2022-07-14 03:41:13 +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);
}
}