mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 09:05:04 +01:00
Use 4arg connect
This commit is contained in:
parent
0b15e29324
commit
46bd5b42fa
@ -708,7 +708,7 @@ void FancyTabWidget::addMenuItem(QActionGroup *group, const QString &text, Mode
|
||||
|
||||
QAction *action = group->addAction(text);
|
||||
action->setCheckable(true);
|
||||
QObject::connect(action, &QAction::triggered, [this, mode]() { SetMode(mode); });
|
||||
QObject::connect(action, &QAction::triggered, this, [this, mode]() { SetMode(mode); });
|
||||
|
||||
if (mode == mode_) action->setChecked(true);
|
||||
|
||||
|
@ -216,7 +216,7 @@ void PlayingWidget::CreateModeAction(const Mode mode, const QString &text, QActi
|
||||
|
||||
QAction *action = new QAction(text, group);
|
||||
action->setCheckable(true);
|
||||
QObject::connect(action, &QAction::triggered, [this, mode]() { SetMode(mode); });
|
||||
QObject::connect(action, &QAction::triggered, this, [this, mode]() { SetMode(mode); });
|
||||
|
||||
if (mode == mode_) action->setChecked(true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user