mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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>
9 lines
185 B
C++
9 lines
185 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#include "windowtitleupdate.h"
|
|
|
|
WindowTitleUpdate windowTitleUpdate;
|
|
|
|
extern "C" void updateWindowTitle()
|
|
{
|
|
emit windowTitleUpdate.updateTitle();
|
|
}
|