mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 01:13:24 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue