summaryrefslogtreecommitdiffstats
path: root/wayland
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-08-20 16:58:33 +0200
committerHolger Freyther <holger+qt@freyther.de>2017-09-01 09:39:58 +0000
commit534e108c36281604705f824bb09f48cc02a0fdb7 (patch)
treec8024b0abb0d96f9080d9eb74379e9e883ca1557 /wayland
parente63b660cff78f3a546905a9fc6b476c553f0787a (diff)
democompositor: QFont takes only int as parameters. Pass one
There is no constructor that takes a qreal/double and we were truncating the double to int. Just pass 12 to it. The alternative is to use the setPointSizeF to set a qreal as point size. Change-Id: Id6f11f45d648a60b2968a7e8bed0e2ae338e7b34 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'wayland')
-rw-r--r--wayland/democompositor/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland/democompositor/main.cpp b/wayland/democompositor/main.cpp
index a094a20..c10e9c2 100644
--- a/wayland/democompositor/main.cpp
+++ b/wayland/democompositor/main.cpp
@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
qputenv("QT_QPA_EGLFS_HIDECURSOR", "1");
QGuiApplication app(argc, argv);
- QFont f("Open Sans", 12.5);
+ QFont f("Open Sans", 12);
app.setFont(f);
qputenv("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1");