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:
parent
1f49608ce8
commit
1b7ee876ac
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user