subsurface/core/windowtitleupdate.h
Berthold Stoeger 7fe76a5dbd 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>
2018-07-30 13:55:23 -07:00

16 lines
275 B
C++

// SPDX-License-Identifier: GPL-2.0
#ifndef WINDOWTITLEUPDATE_H
#define WINDOWTITLEUPDATE_H
#include <QObject>
class WindowTitleUpdate : public QObject
{
Q_OBJECT
signals:
void updateTitle();
};
extern WindowTitleUpdate windowTitleUpdate;
#endif // WINDOWTITLEUPDATE_H