mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Profile: begin untangling from MainWindow
Use a signal to turn the toolbar on or off. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fcf47552c6
commit
533d724d1b
3 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue