diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-16 06:04:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-16 06:04:34 -0700 |
commit | 0fa0eb2879bf72654a7febf8b977b0ba6f515658 (patch) | |
tree | c5bcdba3579ef86b342cc9671faa71a7ed5bb766 /qthelper.cpp | |
parent | c593dea119b4c5fa77a8b2cc129d048d7d56afa4 (diff) | |
download | subsurface-0fa0eb2879bf72654a7febf8b977b0ba6f515658.tar.gz |
Code cleanup: implement window title update via signal
This seems quite convoluted to me but I can't seem to make a more straight
forward implementation work. The idea is that core code should never
directly call into the UI.
So instead the core code (this is C code) calls a helper function. That
helper function calls a member function of a class which in return emits a
signal. The UI code connects to that signal and acts accordingly when it
is received.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 9d907edf9..350692cdb 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -1073,11 +1073,6 @@ extern "C" bool canReachCloudServer() return CheckCloudConnection::checkServer(); } -extern "C" void updateWindowTitle() -{ - MainWindow::instance()->setTitle(); -} - extern "C" void subsurface_mkdir(const char *dir) { QDir directory; |