summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-06-02 19:50:42 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-03 00:05:24 -0700
commit3595ad029408cae855dcf3d7fdbb03c1a02a6714 (patch)
tree003ac4c63c74a500528c487b06794a41873310f5 /qt-ui/mainwindow.cpp
parent2cded299ace9dd5d312956dd3c65509971ded9b6 (diff)
downloadsubsurface-3595ad029408cae855dcf3d7fdbb03c1a02a6714.tar.gz
Make the new picture widget display the pictures.
Small changes in the model to display the pictures of the dives. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 964d2bbc2..af2fcf5c7 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -59,8 +59,7 @@ MainWindow::MainWindow() : QMainWindow(),
yearlyStatsModel(0),
state(VIEWALL),
updateManager(0),
- fakeDiveId(0),
- divePictureModel(new DivePictureModel(this))
+ fakeDiveId(0)
{
Q_ASSERT_X(m_Instance == NULL, "MainWindow", "MainWindow recreated!");
m_Instance = this;
@@ -90,7 +89,6 @@ MainWindow::MainWindow() : QMainWindow(),
ui.ListWidget->expand(ui.ListWidget->model()->index(0, 0));
ui.ListWidget->scrollTo(ui.ListWidget->model()->index(0, 0), QAbstractItemView::PositionAtCenter);
ui.divePlannerWidget->settingsChanged();
-
#ifdef NO_MARBLE
ui.layoutWidget->hide();
ui.menuView->removeAction(ui.actionViewGlobe);
@@ -166,7 +164,6 @@ void MainWindow::current_dive_changed(int divenr)
*/
ui.newProfile->plotDives(QList<dive *>() << (current_dive));
ui.InfoWidget->updateDiveInfo(divenr);
- divePictureModel->updateDivePictures(divenr);
}
void MainWindow::on_actionNew_triggered()