gui: mainwindow: Set center alignment for previews

Noticable now that we have vertical scrolling
This commit is contained in:
Albert S. 2022-08-28 13:04:01 +02:00
orang tua 1edfcc8f23
melakukan 7c63ee9178

Melihat File

@ -678,6 +678,7 @@ void MainWindow::previewReceived(QSharedPointer<PreviewResult> preview, unsigned
previewLayout->setMargin(0); previewLayout->setMargin(0);
previewLayout->insertStretch(0, 1); previewLayout->insertStretch(0, 1);
previewLayout->insertStretch(-1, 1); previewLayout->insertStretch(-1, 1);
previewLayout->setAlignment(Qt::AlignCenter);
QWidget *previewWidget = new QWidget(); QWidget *previewWidget = new QWidget();
previewWidget->setLayout(previewLayout); previewWidget->setLayout(previewLayout);