mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Untangle Profile from MainTab
This one was easy. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
06e65e4c02
commit
332e484d68
2 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,8 @@
|
|||
#include "diveplannermodel.h"
|
||||
#include "models.h"
|
||||
#include "divepicturemodel.h"
|
||||
#include "maintab.h"
|
||||
#include "diveplanner.h"
|
||||
#include "simplewidgets.h"
|
||||
|
||||
#include <libdivecomputer/parser.h>
|
||||
#include <QScrollBar>
|
||||
|
@ -125,7 +125,6 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : QGraphicsView(parent),
|
|||
setupItemOnScene();
|
||||
addItemsToScene();
|
||||
scene()->installEventFilter(this);
|
||||
connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), this, SLOT(settingsChanged()));
|
||||
QAction *action = NULL;
|
||||
#define ADD_ACTION(SHORTCUT, Slot) \
|
||||
action = new QAction(this); \
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "desktop-widgets/mainwindow.h"
|
||||
#include "desktop-widgets/maintab.h"
|
||||
#include "profile-widget/profilewidget2.h"
|
||||
#include "preferences/preferencesdialog.h"
|
||||
#include "desktop-widgets/diveplanner.h"
|
||||
#include "subsurface-core/color.h"
|
||||
#include "qthelper.h"
|
||||
|
@ -94,6 +95,7 @@ int main(int argc, char **argv)
|
|||
QObject::connect(m->graphics(), &ProfileWidget2::refreshDisplay, m, &MainWindow::refreshDisplay, Qt::AutoConnection);
|
||||
QObject::connect(m->graphics(), &ProfileWidget2::updateDiveInfo, m->information(), &MainTab::updateDiveInfo, Qt::AutoConnection);
|
||||
QObject::connect(m->graphics(), &ProfileWidget2::editCurrentDive, m, &MainWindow::editCurrentDive, Qt::AutoConnection);
|
||||
QObject::connect(PreferencesDialog::instance(), SIGNAL(settingsChanged()), m->graphics(), SLOT(settingsChanged()));
|
||||
if (verbose > 0)
|
||||
print_files();
|
||||
if (!quit)
|
||||
|
|
Loading…
Reference in a new issue