Skip to content

Commit

Permalink
Allow word wrap on viewport status bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
Krakonos committed Sep 9, 2024
1 parent df2d36c commit aba3f2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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 Down

0 comments on commit aba3f2e

Please sign in to comment.