mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2cded299ac
commit
3595ad0294
7 changed files with 19 additions and 19 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue