Skip to content

Commit

Permalink
Merge pull request #1571 from openscad/show-viewport-size
Browse files Browse the repository at this point in the history
Show viewport size in status bar.
  • Loading branch information
kintel committed Jan 27, 2016
2 parents 44a50d2 + a9288da commit d2f6820
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/QGLView.cc
Expand Up @@ -171,7 +171,11 @@ void QGLView::paintGL()
if (statusLabel) {
Camera nc(cam);
nc.gimbalDefaultTranslate();
statusLabel->setText(QString::fromStdString(nc.statusText()));
const QString status = QString("%1 (%2x%3)")
.arg(QString::fromStdString(nc.statusText()))
.arg(size().rwidth())
.arg(size().rheight());
statusLabel->setText(status);
}

#if defined(_WIN32) && !defined(USE_QOPENGLWIDGET)
Expand Down

0 comments on commit d2f6820

Please sign in to comment.