Prevent user from entering incorrect characters in Live Notifications channels list (#3715)

Co-authored-by: Sidd <iProdigy@users.noreply.github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
kornes
2022-05-08 10:27:25 +00:00
committed by GitHub
parent fd44f30c7d
commit 07dd8c560b
11 changed files with 199 additions and 0 deletions
@@ -6,6 +6,7 @@
#include "singletons/Settings.hpp"
#include "singletons/Toasts.hpp"
#include "util/LayoutCreator.hpp"
#include "util/Twitch.hpp"
#include "widgets/helper/EditableModelView.hpp"
#include <QCheckBox>
@@ -96,6 +97,7 @@ NotificationPage::NotificationPage()
nullptr, Platform::Twitch))
.getElement();
view->setTitles({"Twitch channels"});
view->setValidationRegexp(twitchUserNameRegexp());
view->getTableView()->horizontalHeader()->setSectionResizeMode(
QHeaderView::Fixed);