From f8fe21d50ba028f033be9ba1ea254a05583f7847 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 29 May 2022 10:13:02 +0200 Subject: [PATCH] gui: Add label showing total number of preview pages --- gui/mainwindow.cpp | 1 + gui/mainwindow.ui | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index df4a416..266a81a 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -453,6 +453,7 @@ void MainWindow::makePreviews(int page) ui->spinPreviewPage->setMaximum(numpages); targets = targets.mid(begin, end); + ui->lblTotalPreviewPagesCount->setText(QString::number(numpages)); ui->previewProcessBar->setMaximum(targets.count()); ui->previewProcessBar->setMinimum(0); ui->previewProcessBar->setValue(0); diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui index 766d3c2..480afed 100644 --- a/gui/mainwindow.ui +++ b/gui/mainwindow.ui @@ -27,7 +27,7 @@ QTabWidget::South - 2 + 1 @@ -155,6 +155,13 @@ + + + + + + +