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
+3 -3
View File
@@ -8,7 +8,7 @@ void PingController::initialize(Settings &settings, Paths &paths)
this->initialized_ = true;
for (const QString &channelName : this->pingSetting_.getValue())
{
this->channelVector.appendItem(channelName);
this->channelVector.append(channelName);
}
this->channelVector.delayedItemsChanged.connect([this] { //
@@ -37,7 +37,7 @@ bool PingController::isMuted(const QString &channelName)
void PingController::muteChannel(const QString &channelName)
{
channelVector.appendItem(channelName);
channelVector.append(channelName);
}
void PingController::unmuteChannel(const QString &channelName)
@@ -47,7 +47,7 @@ void PingController::unmuteChannel(const QString &channelName)
{
if (channelVector.raw()[i].toLower() == channelName.toLower())
{
channelVector.removeItem(i);
channelVector.removeAt(i);
i--;
}
}