Skip to content

Commit

Permalink
Merge pull request #303 from Krakonos/issue-297-too-large-minimum-win…
Browse files Browse the repository at this point in the history
…dow-size

FIX: Allow smaller window sizes
  • Loading branch information
Krakonos authored Oct 2, 2024
2 parents 38acf93 + aba3f2e commit 5bef61a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -242,7 +245,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);
Expand Down

0 comments on commit 5bef61a

Please sign in to comment.