Add "Timeout action" setting

This commit is contained in:
Rasmus Karlsson
2018-03-24 16:55:28 +01:00
parent 41fbcc738b
commit dc578a5f29
4 changed files with 10 additions and 1 deletions
@@ -13,6 +13,7 @@
namespace chatterino {
namespace widgets {
namespace settingspages {
ModerationPage::ModerationPage()
: SettingsPage("Moderation", "")
{
@@ -27,6 +28,12 @@ ModerationPage::ModerationPage()
label->setStyleSheet("color: #bbb");
// clang-format on
auto form = layout.emplace<QFormLayout>();
{
form->addRow("Action on timed out messages (unimplemented):",
this->createComboBox({"Disable", "Hide"}, settings.timeoutAction));
}
auto modButtons =
layout.emplace<QGroupBox>("Custom moderator buttons").setLayoutType<QVBoxLayout>();
{
@@ -18,6 +18,7 @@ public:
private:
QTimer itemsChangedTimer;
};
} // namespace settingspages
} // namespace widgets
} // namespace chatterino