summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-12-01 01:38:55 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2017-12-01 09:44:34 +0100
commit1b7ee876ace8c195c91b9cb22686dfea0be0bdfc (patch)
tree241fac2631128e3450f2f7d3db6f50f3f7cd0f5d
parent1f49608ce8b2f721c2ff1c8c792b0f5f1dec3a5a (diff)
downloadsubsurface-1b7ee876ace8c195c91b9cb22686dfea0be0bdfc.tar.gz
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 <sfuchs@gmx.de>
-rw-r--r--desktop-widgets/tab-widgets/TabDivePhotos.cpp1
1 files changed, 1 insertions, 0 deletions
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) {