Update Settings and Signals version (#3398)

Co-authored-by: zneix <zneix@zneix.eu>
This commit is contained in:
pajlada
2021-12-19 15:57:56 +01:00
committed by GitHub
parent 60ff82f2de
commit 51ece94f58
39 changed files with 282 additions and 268 deletions
@@ -55,9 +55,7 @@ NotificationPage::NotificationPage()
// implementation of custom combobox done
// because addComboBox only can handle strings-settings
// int setting for the ToastReaction is desired
openIn
.append(this->createToastReactionComboBox(
this->managedConnections_))
openIn.append(this->createToastReactionComboBox())
->setSizePolicy(QSizePolicy::Maximum,
QSizePolicy::Preferred);
}
@@ -118,8 +116,7 @@ NotificationPage::NotificationPage()
}
}
}
QComboBox *NotificationPage::createToastReactionComboBox(
std::vector<pajlada::Signals::ScopedConnection> managedConnections)
QComboBox *NotificationPage::createToastReactionComboBox()
{
QComboBox *toastReactionOptions = new QComboBox();
@@ -135,7 +132,7 @@ QComboBox *NotificationPage::createToastReactionComboBox(
[toastReactionOptions](const int &index, auto) {
toastReactionOptions->setCurrentIndex(index);
},
managedConnections);
this->managedConnections_);
QObject::connect(toastReactionOptions,
QOverload<int>::of(&QComboBox::currentIndexChanged),