diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-12-01 01:38:55 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-12-01 09:44:34 +0100 |
commit | 1b7ee876ace8c195c91b9cb22686dfea0be0bdfc (patch) | |
tree | 241fac2631128e3450f2f7d3db6f50f3f7cd0f5d /desktop-widgets/tab-widgets/TabDivePhotos.cpp | |
parent | 1f49608ce8b2f721c2ff1c8c792b0f5f1dec3a5a (diff) | |
download | subsurface-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>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDivePhotos.cpp')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDivePhotos.cpp | 1 |
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) { |