mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
7fe76a5dbd
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>
16 lines
275 B
C++
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
|