From 313351c396bf3a887c21662f270a68a9ae4510ee Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 14 Sep 2018 11:51:05 -0700 Subject: [PATCH] Add Q_OBJECT macro to two more classes These also showed up as concerns when creating translation strings. Adding them thankfully didn't create new strings, but not having them potentially leads to incorrect runtime behavior. Signed-off-by: Dirk Hohndel --- desktop-widgets/simplewidgets.h | 1 + qt-models/yearlystatisticsmodel.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/desktop-widgets/simplewidgets.h b/desktop-widgets/simplewidgets.h index 3604a847e..526e2be50 100644 --- a/desktop-widgets/simplewidgets.h +++ b/desktop-widgets/simplewidgets.h @@ -203,6 +203,7 @@ public: }; class TextHyperlinkEventFilter : public QObject { + Q_OBJECT public: explicit TextHyperlinkEventFilter(QTextEdit *txtEdit); diff --git a/qt-models/yearlystatisticsmodel.cpp b/qt-models/yearlystatisticsmodel.cpp index c83a803c2..f0877274b 100644 --- a/qt-models/yearlystatisticsmodel.cpp +++ b/qt-models/yearlystatisticsmodel.cpp @@ -5,6 +5,7 @@ #include "core/statistics.h" class YearStatisticsItem : public TreeItem { + Q_OBJECT public: enum { YEAR,