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>
This commit is contained in:
Stefan Fuchs 2017-12-01 01:38:55 +01:00 committed by Robert C. Helling
parent 1f49608ce8
commit 1b7ee876ac

View file

@ -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) {