diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-11 11:10:14 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-11 11:10:14 -0700 |
commit | 82b15b02b39706b4799e6683bd7e5937cf6b7a7b (patch) | |
tree | d1e34c7dcdc530668bde9c3dc5e551d547bd3427 /qt-ui/mainwindow.cpp | |
parent | 1dee5e1723fb7af710356aa6f2831b4ea4a2c3bc (diff) | |
download | subsurface-82b15b02b39706b4799e6683bd7e5937cf6b7a7b.tar.gz |
Dive site management: show pictures instead of profile
This seems to work better than moving the Globe up there.
It's not ideal (I really want to be able to show one big picture for the
site - and on all the sites without pictures we show nothing), but for now
I think this is better than having the profile there.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index ac7981019..80f9fc9f1 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -107,13 +107,14 @@ MainWindow::MainWindow() : QMainWindow(), profLayout->addWidget(toolBar); profLayout->addWidget(profileWidget); profileContainer->setLayout(profLayout); - + DivePictureWidget *divePictures = new DivePictureWidget(this); + divePictures->setModel(DivePictureModel::instance()); registerApplicationState("Default", mainTab, profileContainer, diveListView, globeGps ); registerApplicationState("AddDive", mainTab, profileContainer, diveListView, globeGps ); registerApplicationState("EditDive", mainTab, profileContainer, diveListView, globeGps ); registerApplicationState("PlanDive", plannerWidget, profileContainer, plannerSettings, plannerDetails ); registerApplicationState("EditPlannedDive", plannerWidget, profileContainer, diveListView, globeGps ); - registerApplicationState("EditDiveSite",locationInformation, profileContainer, diveListView, globeGps ); + registerApplicationState("EditDiveSite",locationInformation, divePictures, diveListView, globeGps ); setApplicationState("Default"); |