]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiWorkArea.cpp
Extend LATEXIFY command param handling and add literal param.
[lyx.git] / src / frontends / qt4 / GuiWorkArea.cpp
index 22523a88aadd8ba546882dbaefa5300cb3c4d44d..8a023726b2f11018f4fd1b3be9709031305abb40 100644 (file)
@@ -275,7 +275,7 @@ GuiWorkArea::GuiWorkArea(Buffer & buffer, GuiView & gv)
 double GuiWorkArea::pixelRatio() const
 {
 #if QT_VERSION >= 0x050000
-       return devicePixelRatio();
+       return qt_scale_factor * devicePixelRatio();
 #else
        return 1.0;
 #endif
@@ -1264,6 +1264,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
        GuiPainter pain(d->screen_, pixelRatio());
        d->buffer_view_->updateMetrics();
        d->buffer_view_->draw(pain);
+       // FIXME: shall we use real_current_font here? (see #10478)
        FontInfo font = d->buffer_view_->cursor().getFont().fontInfo();
        FontMetrics const & fm = theFontMetrics(font);
        int height = fm.maxHeight();
@@ -1395,7 +1396,7 @@ void GuiWorkArea::updateWindowTitle()
                d->read_only_ = buf.isReadonly();
                d->vc_status_ = buf.lyxvc().vcstatus();
                d->clean_ = buf.isClean();
-               titleChanged(this);
+               Q_EMIT titleChanged(this);
        }
 }