summaryrefslogtreecommitdiffstats
path: root/subsurface-desktop-main.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-05 09:32:19 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-05 13:45:50 -0800
commit533d724d1b4380741ce7db91c39262df6c0df062 (patch)
tree3678302c1967df3e269afb16eda562fd8b8abdfb /subsurface-desktop-main.cpp
parentfcf47552c641facce196c4e96d4634daff6cfd11 (diff)
downloadsubsurface-533d724d1b4380741ce7db91c39262df6c0df062.tar.gz
Profile: begin untangling from MainWindow
Use a signal to turn the toolbar on or off. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r--subsurface-desktop-main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp
index e7259c3f3..a40edda1b 100644
--- a/subsurface-desktop-main.cpp
+++ b/subsurface-desktop-main.cpp
@@ -9,6 +9,7 @@
#include "qt-gui.h"
#include "subsurfacestartup.h"
#include "desktop-widgets/mainwindow.h"
+#include "profile-widget/profilewidget2.h"
#include "desktop-widgets/diveplanner.h"
#include "subsurface-core/color.h"
#include "qthelper.h"
@@ -82,6 +83,8 @@ int main(int argc, char **argv)
// in case something has gone wrong make sure we show the error message
m->showError();
+ // now let's set up some connections
+ QObject::connect(m->graphics(), &ProfileWidget2::enableToolbar ,m, &MainWindow::setEnabledToolbar, Qt::AutoConnection);
if (verbose > 0)
print_files();
if (!quit)