diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-14 11:51:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-14 11:55:24 -0700 |
commit | 313351c396bf3a887c21662f270a68a9ae4510ee (patch) | |
tree | bb680e59a352a4f8194f44b71703b7ad42bd20f9 | |
parent | b79dd2c423b580781cda1dcc7e727c8fa08daa1a (diff) | |
download | subsurface-313351c396bf3a887c21662f270a68a9ae4510ee.tar.gz |
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 <dirk@hohndel.org>
-rw-r--r-- | desktop-widgets/simplewidgets.h | 1 | ||||
-rw-r--r-- | qt-models/yearlystatisticsmodel.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
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, |