mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Set zoom value after menu
Fixes initial size with styles that show a menu indicator
This commit is contained in:
parent
94647a6f20
commit
71268e859d
@ -673,7 +673,6 @@ GuiView::GuiView(int id)
|
||||
connect(zoom_out_, SIGNAL(clicked()), this, SLOT(zoomOutPressed()));
|
||||
|
||||
zoom_value_ = new QToolButton(statusBar());
|
||||
zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), zoom)));
|
||||
zoom_value_->setToolButtonStyle(Qt::ToolButtonTextOnly);
|
||||
zoom_value_->setAutoRaise(true);
|
||||
zoom_value_->setPopupMode(QToolButton::InstantPopup);
|
||||
@ -696,6 +695,7 @@ GuiView::GuiView(int id)
|
||||
zoom_value_->addAction(act_zoom_in_);
|
||||
zoom_value_->addAction(act_zoom_out_);
|
||||
zoom_value_->addAction(act_zoom_show_);
|
||||
zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), zoom)));
|
||||
enableZoomOptions();
|
||||
connect(act_zoom_default_, SIGNAL(triggered()),
|
||||
this, SLOT(resetDefaultZoom()));
|
||||
|
Loading…
Reference in New Issue
Block a user