2018-06-26 14:09:39 +02:00
|
|
|
#include "SpecialChannelsPage.hpp"
|
2018-01-23 23:10:27 +01:00
|
|
|
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "Application.hpp"
|
|
|
|
#include "singletons/SettingsManager.hpp"
|
|
|
|
#include "util/LayoutCreator.hpp"
|
2018-01-23 23:10:27 +01:00
|
|
|
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
namespace chatterino {
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2018-01-23 23:10:27 +01:00
|
|
|
SpecialChannelsPage::SpecialChannelsPage()
|
|
|
|
: SettingsPage("Special channels", "")
|
|
|
|
{
|
2018-04-27 22:11:19 +02:00
|
|
|
auto app = getApp();
|
|
|
|
|
2018-01-23 23:10:27 +01:00
|
|
|
util::LayoutCreator<SpecialChannelsPage> layoutCreator(this);
|
|
|
|
auto layout = layoutCreator.setLayoutType<QVBoxLayout>();
|
|
|
|
|
|
|
|
auto mentions = layout.emplace<QGroupBox>("Mentions channel").setLayoutType<QVBoxLayout>();
|
|
|
|
{
|
|
|
|
mentions.emplace<QLabel>("Join /mentions to view your mentions.");
|
|
|
|
}
|
|
|
|
|
2018-02-04 16:33:46 +01:00
|
|
|
auto whispers = layout.emplace<QGroupBox>("Whispers").setLayoutType<QVBoxLayout>();
|
|
|
|
{
|
|
|
|
whispers.emplace<QLabel>("Join /whispers to view your mentions.");
|
|
|
|
}
|
|
|
|
|
2018-01-23 23:10:27 +01:00
|
|
|
layout->addStretch(1);
|
|
|
|
}
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2018-01-23 23:10:27 +01:00
|
|
|
} // namespace chatterino
|