From 82b15b02b39706b4799e6683bd7e5937cf6b7a7b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 11 Jun 2015 11:10:14 -0700 Subject: 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 --- qt-ui/mainwindow.cpp | 5 +++-- 1 file 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"); -- cgit v1.2.3-70-g09d2