2018-01-12 23:09:05 +01:00
|
|
|
#include "logspage.hpp"
|
|
|
|
|
2018-01-28 14:23:55 +01:00
|
|
|
#include <QFormLayout>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
#include "util/layoutcreator.hpp"
|
|
|
|
|
2018-01-12 23:09:05 +01:00
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
|
|
|
namespace settingspages {
|
2018-01-28 14:23:55 +01:00
|
|
|
|
2018-01-12 23:09:05 +01:00
|
|
|
LogsPage::LogsPage()
|
2018-01-23 23:10:27 +01:00
|
|
|
: SettingsPage("Logs", "")
|
2018-01-12 23:09:05 +01:00
|
|
|
{
|
2018-01-28 14:23:55 +01:00
|
|
|
singletons::SettingManager &settings = singletons::SettingManager::getInstance();
|
|
|
|
util::LayoutCreator<LogsPage> layoutCreator(this);
|
|
|
|
auto layout = layoutCreator.emplace<QVBoxLayout>().withoutMargin();
|
|
|
|
|
|
|
|
{
|
|
|
|
auto form = layout.emplace<QFormLayout>();
|
|
|
|
|
|
|
|
// clang-format off
|
|
|
|
form->addRow("Enabled:", this->createCheckBox("Enable logging", settings.enableLogging));
|
|
|
|
// clang-format on
|
|
|
|
}
|
|
|
|
|
|
|
|
layout->addStretch(1);
|
2018-01-12 23:09:05 +01:00
|
|
|
}
|
2018-01-28 14:23:55 +01:00
|
|
|
|
2018-01-12 23:09:05 +01:00
|
|
|
} // namespace settingspages
|
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|