diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-05 13:11:26 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-05 13:45:51 -0800 |
commit | 2b9316e16ab94b1a8ef7a0c5abbce2f80abf5053 (patch) | |
tree | 03cc0b62eb754c7e543f43f1aa96e7ab2012da42 /subsurface-desktop-main.cpp | |
parent | 4ec5ce4c7a69acc682a9ed03b0170bf0f43c88af (diff) | |
download | subsurface-2b9316e16ab94b1a8ef7a0c5abbce2f80abf5053.tar.gz |
Untangle Profile from MainWindow: update main tab via signal
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r-- | subsurface-desktop-main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index fed774303..d5caf64d3 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 "desktop-widgets/maintab.h" #include "profile-widget/profilewidget2.h" #include "desktop-widgets/diveplanner.h" #include "subsurface-core/color.h" @@ -91,6 +92,7 @@ int main(int argc, char **argv) QObject::connect(m->graphics(), &ProfileWidget2::disableShortcuts, m, &MainWindow::disableShortcuts, Qt::AutoConnection); QObject::connect(m->graphics(), &ProfileWidget2::enableShortcuts, m, &MainWindow::enableShortcuts, Qt::AutoConnection); QObject::connect(m->graphics(), &ProfileWidget2::refreshDisplay, m, &MainWindow::refreshDisplay, Qt::AutoConnection); + QObject::connect(m->graphics(), &ProfileWidget2::updateDiveInfo, m->information(), &MainTab::updateDiveInfo, Qt::AutoConnection); if (verbose > 0) print_files(); if (!quit) |