From 1b7ee876ace8c195c91b9cb22686dfea0be0bdfc Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Fri, 1 Dec 2017 01:38:55 +0100 Subject: Dive picture widget: Allow pictures to use available space on resize Small change to allow the dive pictures list to use the available space if one resizes the window or switches to different mainwindow view. Signed-off-by: Stefan Fuchs --- desktop-widgets/tab-widgets/TabDivePhotos.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/tab-widgets/TabDivePhotos.cpp b/desktop-widgets/tab-widgets/TabDivePhotos.cpp index e45e07319..86749e770 100644 --- a/desktop-widgets/tab-widgets/TabDivePhotos.cpp +++ b/desktop-widgets/tab-widgets/TabDivePhotos.cpp @@ -22,6 +22,7 @@ TabDivePhotos::TabDivePhotos(QWidget *parent) ui->setupUi(this); ui->photosView->setModel(divePictureModel); ui->photosView->setSelectionMode(QAbstractItemView::ExtendedSelection); + ui->photosView->setResizeMode(QListView::Adjust); connect(ui->photosView, &DivePictureWidget::photoDoubleClicked, [](const QString& path) { -- cgit v1.2.3-70-g09d2