]> git.lyx.org Git - features.git/commitdiff
Set zoom value after menu
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 12 Mar 2021 15:30:50 +0000 (16:30 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 12 Mar 2021 15:30:50 +0000 (16:30 +0100)
Fixes initial size with styles that show a menu indicator

src/frontends/qt/GuiView.cpp

index 7dd05f06aa13aaf5934e37fad0473f3b9077fb3e..39d5c4d577bfd091de8f28e0ccb13ab99f40358f 100644 (file)
@@ -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()));