mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Keep zoom label width constant (#12186)
This commit is contained in:
parent
cf75003119
commit
b9fb2a236e
@ -657,6 +657,11 @@ GuiView::GuiView(int id)
|
|||||||
|
|
||||||
zoom_value_ = new QLabel(statusBar());
|
zoom_value_ = new QLabel(statusBar());
|
||||||
zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), zoom)));
|
zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), zoom)));
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 11, 0))
|
||||||
|
zoom_value_->setMinimumWidth(fm.horizontalAdvance("000%"));
|
||||||
|
#else
|
||||||
|
zoom_value_->setMinimumWidth(fm.width("000%"));
|
||||||
|
#endif
|
||||||
statusBar()->addPermanentWidget(zoom_value_);
|
statusBar()->addPermanentWidget(zoom_value_);
|
||||||
zoom_value_->setEnabled(currentBufferView());
|
zoom_value_->setEnabled(currentBufferView());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user