From df2d36cc1f91480acd76431e87da732e591baa5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20L=C3=A1ska?= Date: Mon, 9 Sep 2024 19:09:39 +0200 Subject: [PATCH 1/2] Shrink background image load bar. --- src/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 96169e51..d6b945b4 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -242,7 +242,7 @@ MainWindow::MainWindow(QWidget *parent) updateLanguage(); ViewportStatusLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); - pbImages->setMaximumWidth(200); + pbImages->setMaximumWidth(50); pbImages->setFormat(tr("tile %v / %m")); #ifdef _MOBILE pbImages->setVisible(false); From aba3f2e70e7b84d1edafe0f83b4a0ac665658bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20L=C3=A1ska?= Date: Mon, 9 Sep 2024 19:10:00 +0200 Subject: [PATCH 2/2] Allow word wrap on viewport status bar. --- src/MainWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d6b945b4..ff0c752e 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -228,8 +228,11 @@ MainWindow::MainWindow(QWidget *parent) MeterPerPixelLabel = new QLabel(this); AdjusmentMeterLabel = new QLabel(this); + ViewportStatusLabel->setWordWrap(true); + ViewportStatusLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter); + pbImages = new QProgressBar(this); - statusBar()->addPermanentWidget(ViewportStatusLabel); + statusBar()->addPermanentWidget(ViewportStatusLabel, true); statusBar()->addPermanentWidget(pbImages); statusBar()->addPermanentWidget(MeterPerPixelLabel); statusBar()->addPermanentWidget(AdjusmentMeterLabel);