ran clang-format on all files
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
#include "AccountsPage.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "providers/twitch/Const.hpp"
|
||||
#include "controllers/accounts/AccountController.hpp"
|
||||
#include "controllers/accounts/AccountModel.hpp"
|
||||
#include "providers/twitch/Const.hpp"
|
||||
#include "util/LayoutCreator.hpp"
|
||||
#include "widgets/helper/EditableModelView.hpp"
|
||||
#include "widgets/dialogs/LoginDialog.hpp"
|
||||
#include "widgets/helper/EditableModelView.hpp"
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
#include <QHeaderView>
|
||||
|
||||
@@ -40,8 +40,7 @@ CommandPage::CommandPage()
|
||||
view->setTitles({"Trigger", "Command"});
|
||||
view->getTableView()->horizontalHeader()->setStretchLastSection(true);
|
||||
view->addButtonPressed.connect([] {
|
||||
getApp()->commands->items.appendItem(
|
||||
Command{"/command", "I made a new command HeyGuys"});
|
||||
getApp()->commands->items.appendItem(Command{"/command", "I made a new command HeyGuys"});
|
||||
});
|
||||
|
||||
layout.append(this->createCheckBox("Also match the trigger at the end of the message",
|
||||
|
||||
@@ -44,8 +44,7 @@ HighlightingPage::HighlightingPage()
|
||||
auto highlights = tabs.appendTab(new QVBoxLayout, "Highlights");
|
||||
{
|
||||
EditableModelView *view =
|
||||
highlights
|
||||
.emplace<EditableModelView>(app->highlights->createModel(nullptr))
|
||||
highlights.emplace<EditableModelView>(app->highlights->createModel(nullptr))
|
||||
.getElement();
|
||||
|
||||
view->setTitles({"Pattern", "Flash taskbar", "Play sound", "Regex"});
|
||||
|
||||
@@ -64,8 +64,7 @@ IgnoreUsersPage::IgnoreUsersPage()
|
||||
auto messages = tabs.appendTab(new QVBoxLayout, "Messages");
|
||||
{
|
||||
EditableModelView *view =
|
||||
messages.emplace<EditableModelView>(app->ignores->createModel(nullptr))
|
||||
.getElement();
|
||||
messages.emplace<EditableModelView>(app->ignores->createModel(nullptr)).getElement();
|
||||
view->setTitles({"Pattern", "Regex"});
|
||||
view->getTableView()->horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed);
|
||||
view->getTableView()->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
|
||||
@@ -77,8 +76,7 @@ IgnoreUsersPage::IgnoreUsersPage()
|
||||
});
|
||||
|
||||
view->addButtonPressed.connect([] {
|
||||
getApp()->ignores->phrases.appendItem(
|
||||
IgnorePhrase{"my phrase", false});
|
||||
getApp()->ignores->phrases.appendItem(IgnorePhrase{"my phrase", false});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user