mirror-chatterino2/src/widgets/settingspages/SpecialChannelsPage.cpp

35 lines
915 B
C++
Raw Normal View History

2018-06-26 14:09:39 +02:00
#include "SpecialChannelsPage.hpp"
2018-06-26 14:09:39 +02:00
#include "Application.hpp"
#include "singletons/SettingsManager.hpp"
#include "util/LayoutCreator.hpp"
#include <QGroupBox>
#include <QLabel>
#include <QVBoxLayout>
namespace chatterino {
SpecialChannelsPage::SpecialChannelsPage()
: SettingsPage("Special channels", "")
{
auto app = getApp();
2018-06-26 17:06:17 +02:00
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.");
}
auto whispers = layout.emplace<QGroupBox>("Whispers").setLayoutType<QVBoxLayout>();
{
whispers.emplace<QLabel>("Join /whispers to view your mentions.");
}
layout->addStretch(1);
}
} // namespace chatterino