]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.cpp
Squash warnings reported by gcc 4.9
[features.git] / src / frontends / qt4 / GuiView.cpp
index 5ddcdb47412564482f0b7cd43daa4d0dda5b6f6a..1fbe8256eb39f9e82325e4fd2a37434a9eadb0e2 100644 (file)
@@ -162,9 +162,9 @@ public:
                QPainter pain(&splash_);
                pain.setPen(QColor(0, 0, 0));
                double const multiplier = splashPixelRatio() / pixelRatio();
-               int const size = toqstr(lyxrc.font_sizes[FONT_SIZE_LARGE]).toDouble() * multiplier;
-               int const x = 190 * multiplier;
-               int const y = 225 * multiplier;
+               int const size = static_cast<int>(toqstr(lyxrc.font_sizes[FONT_SIZE_LARGE]).toDouble() * multiplier);
+               int const x = static_cast<int>(190 * multiplier);
+               int const y = static_cast<int>(225 * multiplier);
                LYXERR(Debug::GUI,
                        "widget pixel ratio: " << pixelRatio() <<
                        " splash pixel ratio: " << splashPixelRatio() <<
@@ -181,8 +181,8 @@ public:
 
        void paintEvent(QPaintEvent *)
        {
-               int const w = splash_.width() / splashPixelRatio();
-               int const h = splash_.height() / splashPixelRatio();
+               int const w = static_cast<int>(splash_.width() / splashPixelRatio());
+               int const h = static_cast<int>(splash_.height() / splashPixelRatio());
                int const x = (width() - w) / 2;
                int const y = (height() - h) / 2;
                LYXERR(Debug::GUI,