From 534e108c36281604705f824bb09f48cc02a0fdb7 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 20 Aug 2017 16:58:33 +0200 Subject: 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 --- wayland/democompositor/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3