mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4bdd811f06
commit
7fe76a5dbd
5 changed files with 5 additions and 39 deletions
|
|
@ -17,7 +17,6 @@
|
|||
#include "ui_mainwindow.h"
|
||||
#include "ui_plannerDetails.h"
|
||||
#include "desktop-widgets/notificationwidget.h"
|
||||
#include "core/windowtitleupdate.h"
|
||||
#include "core/gpslocation.h"
|
||||
|
||||
#define NUM_RECENT_FILES 4
|
||||
|
|
@ -253,7 +252,6 @@ private:
|
|||
QHash<QByteArray, WidgetForQuadrant> applicationState;
|
||||
QHash<QByteArray, PropertiesForQuadrant> stateProperties;
|
||||
|
||||
WindowTitleUpdate *wtu;
|
||||
GpsLocation *locationProvider;
|
||||
QMenu *connections;
|
||||
QAction *share_on_fb;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue