Skip to content

Commit

Permalink
general: fix warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Popa <[email protected]>
  • Loading branch information
andrei47w committed Dec 12, 2024
1 parent 243619b commit 0c55855
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/regmap/src/registermapsettingsmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void RegisterMapSettingsMenu::startTutorial()

auto settingsTutorialFinish = connect(settingsTutorial, &gui::TutorialBuilder::finished, this,
&RegisterMapSettingsMenu::tutorialDone, Qt::UniqueConnection);
connect(settingsTutorial, &gui::TutorialBuilder::aborted, this, [=, this]() {
connect(settingsTutorial, &gui::TutorialBuilder::aborted, this, [settingsTutorialFinish, this]() {
disconnect(settingsTutorialFinish);
Q_EMIT tutorialAborted();
});
Expand Down
4 changes: 2 additions & 2 deletions plugins/regmap/src/registermaptool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void RegisterMapTool::startTutorial()

controllerTutorial = connect(
settings, &RegisterMapSettingsMenu::tutorialDone, this,
[=, this]() { deviceList->value(activeRegisterMap)->startTutorial(); }, Qt::UniqueConnection);
[this]() { deviceList->value(activeRegisterMap)->startTutorial(); }, Qt::UniqueConnection);

connect(deviceList->value(activeRegisterMap), &DeviceRegisterMap::tutorialFinished, this,
&RegisterMapTool::tutorialAborted);
Expand All @@ -220,7 +220,7 @@ void RegisterMapTool::startSimpleTutorial()

controllerTutorial = connect(
settings, &RegisterMapSettingsMenu::tutorialDone, this,
[=, this]() { deviceList->value(activeRegisterMap)->startSimpleTutorial(); }, Qt::UniqueConnection);
[this]() { deviceList->value(activeRegisterMap)->startSimpleTutorial(); }, Qt::UniqueConnection);

connect(deviceList->value(activeRegisterMap), &DeviceRegisterMap::simpleTutorialFinished, this,
&RegisterMapTool::tutorialAborted);
Expand Down
1 change: 1 addition & 0 deletions plugins/swiot/src/ad74413r/ad74413r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ void Ad74413r::setupToolTemplate()

connect(m_infoBtn, &InfoBtn::clicked, this, [this]() {
m_infoBtn->generateInfoPopup(this);

connect(m_infoBtn->getTutorialButton(), &QPushButton::clicked, this, &Ad74413r::startTutorial);
connect(m_infoBtn->getDocumentationButton(), &QAbstractButton::clicked, this, [=, this]() {
QDesktopServices::openUrl(
Expand Down
1 change: 1 addition & 0 deletions plugins/swiot/src/faults/faults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Faults::Faults(QString uri, ToolMenuEntry *tme, QWidget *parent)

InfoBtn *infoBtn = new InfoBtn(this, true);
m_tool->addWidgetToTopContainerHelper(infoBtn, TTA_LEFT);

connect(infoBtn, &InfoBtn::clicked, this, [this, infoBtn]() {
infoBtn->generateInfoPopup(this);
connect(infoBtn->getTutorialButton(), &QPushButton::clicked, this, &Faults::startTutorial);
Expand Down

0 comments on commit 0c55855

Please sign in to comment.