From 858fc6ea01b7f408b52be58d7f22fc8c12efe90e Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 21 Apr 2020 16:34:24 +0100 Subject: [PATCH] Launcher: Fix compilation with Qt < 5.6 --- src/GUI/ThumbnailImageItem.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GUI/ThumbnailImageItem.cxx b/src/GUI/ThumbnailImageItem.cxx index a2444470e..b9c25c1ec 100644 --- a/src/GUI/ThumbnailImageItem.cxx +++ b/src/GUI/ThumbnailImageItem.cxx @@ -83,8 +83,11 @@ QSGNode *ThumbnailImageItem::updatePaintNode(QSGNode* oldNode, QQuickItem::Updat textureNode = new QSGSimpleTextureNode; textureNode->setOwnsTexture(true); } - +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) QSGTexture* tex = window()->createTextureFromImage(m_image, QQuickWindow::TextureIsOpaque); +#else + QSGTexture* tex = window()->createTextureFromImage(m_image); +#endif textureNode->setTexture(tex); textureNode->markDirty(QSGBasicGeometryNode::DirtyMaterial); m_imageDirty = false;