removed compat functions in SignalVector

This commit is contained in:
fourtf
2020-02-23 19:44:13 +01:00
parent e2c493f369
commit 2ebe07bace
17 changed files with 36 additions and 58 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ CommandPage::CommandPage()
view->setTitles({"Trigger", "Command"});
view->getTableView()->horizontalHeader()->setStretchLastSection(true);
view->addButtonPressed.connect([] {
getApp()->commands->items_.appendItem(
getApp()->commands->items_.append(
Command{"/command", "I made a new command HeyGuys"});
});
@@ -65,7 +65,7 @@ CommandPage::CommandPage()
{
if (int index = line.indexOf(' '); index != -1)
{
getApp()->commands->items_.insertItem(
getApp()->commands->items_.insert(
Command(line.mid(0, index), line.mid(index + 1)));
}
}
@@ -72,7 +72,7 @@ HighlightingPage::HighlightingPage()
});
view->addButtonPressed.connect([] {
getApp()->highlights->phrases.appendItem(HighlightPhrase{
getApp()->highlights->phrases.append(HighlightPhrase{
"my phrase", true, false, false, false, "",
*ColorProvider::instance().color(
ColorType::SelfHighlight)});
@@ -120,7 +120,7 @@ HighlightingPage::HighlightingPage()
});
view->addButtonPressed.connect([] {
getApp()->highlights->highlightedUsers.appendItem(
getApp()->highlights->highlightedUsers.append(
HighlightPhrase{"highlighted user", true, false, false,
false, "",
*ColorProvider::instance().color(
@@ -162,7 +162,7 @@ HighlightingPage::HighlightingPage()
});
view->addButtonPressed.connect([] {
getApp()->highlights->blacklistedUsers.appendItem(
getApp()->highlights->blacklistedUsers.append(
HighlightBlacklistUser{"blacklisted user", false});
});
}
+1 -1
View File
@@ -60,7 +60,7 @@ void addPhrasesTab(LayoutCreator<QVBoxLayout> layout)
});
view->addButtonPressed.connect([] {
getApp()->ignores->phrases.appendItem(
getApp()->ignores->phrases.append(
IgnorePhrase{"my pattern", false, false,
getSettings()->ignoredPhraseReplace.getValue(), true});
});
+1 -1
View File
@@ -184,7 +184,7 @@ ModerationPage::ModerationPage()
0, QHeaderView::Stretch);
view->addButtonPressed.connect([] {
getApp()->moderationActions->items.appendItem(
getApp()->moderationActions->items.append(
ModerationAction("/timeout {user} 300"));
});
@@ -100,7 +100,7 @@ NotificationPage::NotificationPage()
view->addButtonPressed.connect([] {
getApp()
->notifications->channelMap[Platform::Twitch]
.appendItem("channel");
.append("channel");
});
}
/*