subsurface/core/windowtitleupdate.cpp
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

9 lines
185 B
C++

// SPDX-License-Identifier: GPL-2.0
#include "windowtitleupdate.h"
WindowTitleUpdate windowTitleUpdate;
extern "C" void updateWindowTitle()
{
emit windowTitleUpdate.updateTitle();
}