mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG-Input: only capture required variables in signal lambdas
This commit is contained in:
@@ -26,7 +26,7 @@ void AddMappingButton::Initialize(ControllerWidget* widget, MappingButton* butto
|
||||
this->controllerWidget = widget;
|
||||
this->mappingButton = button;
|
||||
|
||||
connect(this, &QPushButton::released, [=, this]
|
||||
connect(this, &QPushButton::released, [this]
|
||||
{
|
||||
emit this->controllerWidget->on_AddMappingButton_Released(this->mappingButton);
|
||||
});
|
||||
|
||||
@@ -31,7 +31,7 @@ void HotkeyButton::Initialize(HotkeysDialog* dialog)
|
||||
{
|
||||
this->hotkeysDialog = dialog;
|
||||
|
||||
connect(this, &QPushButton::released, [=, this]
|
||||
connect(this, &QPushButton::released, [this]
|
||||
{
|
||||
emit this->hotkeysDialog->on_HotkeyButton_Released(this);
|
||||
});
|
||||
|
||||
@@ -31,7 +31,7 @@ void MappingButton::Initialize(ControllerWidget* widget)
|
||||
{
|
||||
this->controllerWidget = widget;
|
||||
|
||||
connect(this, &QPushButton::released, [=, this]
|
||||
connect(this, &QPushButton::released, [this]
|
||||
{
|
||||
emit this->controllerWidget->on_MappingButton_Released(this);
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@ void RemoveMappingButton::Initialize(ControllerWidget* widget, MappingButton* bu
|
||||
this->controllerWidget = widget;
|
||||
this->mappingButton = button;
|
||||
|
||||
connect(this, &QPushButton::released, [=, this]
|
||||
connect(this, &QPushButton::released, [this]
|
||||
{
|
||||
emit this->controllerWidget->on_RemoveMappingButton_Released(this->mappingButton);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user