From 21a1f249f97defb45dbb04295d5c1a233eebb751 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 27 Jun 2020 03:15:36 +0200 Subject: [PATCH] Fix Qt 5.9 build --- src/timeline/TimelineViewManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index a36cd0b..64af8af 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -107,7 +107,10 @@ TimelineViewManager::TimelineViewManager(QSharedPointer userSettin container = view; view->setResizeMode(QQuickWidget::SizeRootObjectToView); container->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + +#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)) view->quickWindow()->setTextRenderType(QQuickWindow::NativeTextRendering); +#endif connect(view, &QQuickWidget::statusChanged, this, [](QQuickWidget::Status status) { nhlog::ui()->debug("Status changed to {}", status);