From 3c3dc498a9b6535e4a648bf5d40610b5d840c0db Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 18 Jan 2023 23:46:08 +0100 Subject: [PATCH 1/2] rm unused include --- QCR/widgets/controls.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/QCR/widgets/controls.cpp b/QCR/widgets/controls.cpp index 37c57b2..a4e8306 100644 --- a/QCR/widgets/controls.cpp +++ b/QCR/widgets/controls.cpp @@ -17,7 +17,6 @@ #include "QCR/base/string_ops.h" #include "QCR/engine/console.h" //#include "QCR/base/debug.h" -#include <QApplication> // for qApp for new Action #include <iostream> // debug #define _SLOT_(Class, method, argType) static_cast<void (Class::*)(argType)>(&Class::method) -- GitLab From 25b1e416085306c4c603b63377384c03fc5147e6 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Thu, 19 Jan 2023 09:52:30 +0100 Subject: [PATCH 2/2] rm parent from QcrAction --- QCR/widgets/actions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/QCR/widgets/actions.cpp b/QCR/widgets/actions.cpp index 90884fd..76ac210 100644 --- a/QCR/widgets/actions.cpp +++ b/QCR/widgets/actions.cpp @@ -18,7 +18,6 @@ #include "QCR/engine/console.h" #include "QCR/widgets/mainwindow.h" //#include "QCR/base/debug.h" -#include <QApplication> // for qApp for new Action #include <iostream> // debug #define _SLOT_(Class, method, argType) static_cast<void (Class::*)(argType)>(&Class::method) @@ -26,7 +25,7 @@ // *********************************************************************************************** //! @class QcrAction -QcrAction::QcrAction(const QString& text) : QAction{text, qApp}, tooltip_{text} {} +QcrAction::QcrAction(const QString& text) : QAction{text}, tooltip_{text} {} // *********************************************************************************************** //! @class QcrTrigger -- GitLab