From 7c63ee9178bac84874fded49c01edb4d32da21d4 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 28 Aug 2022 13:04:01 +0200 Subject: [PATCH] gui: mainwindow: Set center alignment for previews Noticable now that we have vertical scrolling --- gui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 783880f..619634e 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -678,6 +678,7 @@ void MainWindow::previewReceived(QSharedPointer preview, unsigned previewLayout->setMargin(0); previewLayout->insertStretch(0, 1); previewLayout->insertStretch(-1, 1); + previewLayout->setAlignment(Qt::AlignCenter); QWidget *previewWidget = new QWidget(); previewWidget->setLayout(previewLayout);