diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-30 20:59:07 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-30 13:55:23 -0700 |
commit | 7fe76a5dbdef4a833122e0311191dd51896575f4 (patch) | |
tree | 34b1d4f8a7c2d6d4b6b97a142ca27937c4ec4284 /core/windowtitleupdate.h | |
parent | 4bdd811f06096c2420a05dd3cc78fffbd7f3a663 (diff) | |
download | subsurface-7fe76a5dbdef4a833122e0311191dd51896575f4.tar.gz |
Cleanup: Make WindowsTitleUpdate a global object
WindowsTitleUpdate is such a trivial object (a QObject with a single
signal and no own state), that it's not really understandable why
it would need all that "singleton" boiler-plate. Just make it
a default constructed/destructed global object.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/windowtitleupdate.h')
-rw-r--r-- | core/windowtitleupdate.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/windowtitleupdate.h b/core/windowtitleupdate.h index dcda821e9..f08467789 100644 --- a/core/windowtitleupdate.h +++ b/core/windowtitleupdate.h @@ -7,15 +7,10 @@ class WindowTitleUpdate : public QObject { Q_OBJECT -public: - explicit WindowTitleUpdate(QObject *parent = 0); - ~WindowTitleUpdate(); - static WindowTitleUpdate *instance(); - void emitSignal(); signals: void updateTitle(); -private: - static WindowTitleUpdate *m_instance; }; +extern WindowTitleUpdate windowTitleUpdate; + #endif // WINDOWTITLEUPDATE_H |