diff --git a/src/widgets/settingspages/logspage.cpp b/src/widgets/settingspages/logspage.cpp index 04c5ebf7..b7455fe6 100644 --- a/src/widgets/settingspages/logspage.cpp +++ b/src/widgets/settingspages/logspage.cpp @@ -1,48 +1,49 @@ -#include "logspage.hpp" +//#include "logspage.hpp" -#include "application.hpp" -#include "singletons/pathmanager.hpp" +//#include "application.hpp" +//#include "singletons/pathmanager.hpp" -#include -#include +//#include +//#include -#include "util/layoutcreator.hpp" +//#include "util/layoutcreator.hpp" -namespace chatterino { -namespace widgets { -namespace settingspages { +// namespace chatterino { +// namespace widgets { +// namespace settingspages { -inline QString CreateLink(const QString &url, bool file = false) -{ - if (file) { - return QString("" + url + - ""); - } +// inline QString CreateLink(const QString &url, bool file = false) +//{ +// if (file) { +// return QString("" + url + +// ""); +// } - return QString("" + url + ""); -} +// return QString("" + url + +// ""); +//} -LogsPage::LogsPage() - : SettingsPage("Logs", "") -{ - auto app = getApp(); +// LogsPage::LogsPage() +// : SettingsPage("Logs", "") +//{ +// auto app = getApp(); - util::LayoutCreator layoutCreator(this); - auto layout = layoutCreator.emplace().withoutMargin(); +// util::LayoutCreator layoutCreator(this); +// auto layout = layoutCreator.emplace().withoutMargin(); - auto logPath = app->paths->logsFolderPath; +// auto logPath = app->paths->logsFolderPath; - auto created = layout.emplace(); - created->setText("Logs are saved to " + CreateLink(logPath, true)); - created->setTextFormat(Qt::RichText); - created->setTextInteractionFlags(Qt::TextBrowserInteraction | Qt::LinksAccessibleByKeyboard | - Qt::LinksAccessibleByKeyboard); - created->setOpenExternalLinks(true); - layout.append(this->createCheckBox("Enable logging", app->settings->enableLogging)); +// auto created = layout.emplace(); +// created->setText("Logs are saved to " + CreateLink(logPath, true)); +// created->setTextFormat(Qt::RichText); +// created->setTextInteractionFlags(Qt::TextBrowserInteraction | Qt::LinksAccessibleByKeyboard | +// Qt::LinksAccessibleByKeyboard); +// created->setOpenExternalLinks(true); +// layout.append(this->createCheckBox("Enable logging", app->settings->enableLogging)); - layout->addStretch(1); -} +// layout->addStretch(1); +//} -} // namespace settingspages -} // namespace widgets -} // namespace chatterino +//} // namespace settingspages +//} // namespace widgets +//} // namespace chatterino diff --git a/src/widgets/settingspages/logspage.hpp b/src/widgets/settingspages/logspage.hpp index 01af3537..5103571b 100644 --- a/src/widgets/settingspages/logspage.hpp +++ b/src/widgets/settingspages/logspage.hpp @@ -1,17 +1,17 @@ -#pragma once +//#pragma once -#include "widgets/settingspages/settingspage.hpp" +//#include "widgets/settingspages/settingspage.hpp" -namespace chatterino { -namespace widgets { -namespace settingspages { +// namespace chatterino { +// namespace widgets { +// namespace settingspages { -class LogsPage : public SettingsPage -{ -public: - LogsPage(); -}; +// class LogsPage : public SettingsPage +//{ +// public: +// LogsPage(); +//}; -} // namespace settingspages -} // namespace widgets -} // namespace chatterino +//} // namespace settingspages +//} // namespace widgets +//} // namespace chatterino