diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-06-27 03:15:36 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-06-27 03:15:36 +0200 |
commit | 21a1f249f97defb45dbb04295d5c1a233eebb751 (patch) | |
tree | bcd31f5424f586f654204a8e4f070524b539a665 /src/timeline | |
parent | Don't compile qml by default (diff) | |
download | nheko-21a1f249f97defb45dbb04295d5c1a233eebb751.tar.xz |
Fix Qt 5.9 build
Diffstat (limited to 'src/timeline')
-rw-r--r-- | src/timeline/TimelineViewManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index a36cd0bf..64af8afb 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -107,7 +107,10 @@ TimelineViewManager::TimelineViewManager(QSharedPointer<UserSettings> 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); |