removed compat functions in SignalVector
This commit is contained in:
@@ -152,7 +152,7 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
|
||||
auto editor = new IrcConnectionEditor(unique);
|
||||
if (editor->exec() == QDialog::Accepted)
|
||||
{
|
||||
Irc::instance().connections.appendItem(editor->data());
|
||||
Irc::instance().connections.append(editor->data());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -171,9 +171,9 @@ SelectChannelDialog::SelectChannelDialog(QWidget *parent)
|
||||
{
|
||||
if (conn.id == data.id)
|
||||
{
|
||||
Irc::instance().connections.removeItem(
|
||||
Irc::instance().connections.removeAt(
|
||||
i, Irc::noEraseCredentialCaller);
|
||||
Irc::instance().connections.insertItem(data, i);
|
||||
Irc::instance().connections.insert(data, i);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
@@ -336,7 +336,7 @@ void UserInfoPopup::installEvents()
|
||||
|
||||
if (checked)
|
||||
{
|
||||
getApp()->highlights->blacklistedUsers.insertItem(
|
||||
getApp()->highlights->blacklistedUsers.insert(
|
||||
HighlightBlacklistUser{this->userName_, false});
|
||||
this->ui_.ignoreHighlights->setEnabled(true);
|
||||
}
|
||||
@@ -349,7 +349,7 @@ void UserInfoPopup::installEvents()
|
||||
{
|
||||
if (this->userName_ == vector[i].getPattern())
|
||||
{
|
||||
getApp()->highlights->blacklistedUsers.removeItem(i);
|
||||
getApp()->highlights->blacklistedUsers.removeAt(i);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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});
|
||||
});
|
||||
|
||||
@@ -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");
|
||||
});
|
||||
}
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user