diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-05-02 21:49:43 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-05-03 10:12:42 +0000 |
commit | 0ea01a229b42eacee340cd1dc6895a7de99ea895 (patch) | |
tree | 0c0922d20dd00f88163476fe01f4358879dd31ee /examples/quick/scenegraph/rendernode/main.qml | |
parent | 84fb780d830764bcaa53478a5c5c464865897640 (diff) |
Use RendererInfo in the rendernode example
Simplifies things a lot.
Change-Id: I57fbedeeb99884aa5b14532c7be33f6373551b5f
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples/quick/scenegraph/rendernode/main.qml')
-rw-r--r-- | examples/quick/scenegraph/rendernode/main.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/quick/scenegraph/rendernode/main.qml b/examples/quick/scenegraph/rendernode/main.qml index 32154cc930..bae77aabd3 100644 --- a/examples/quick/scenegraph/rendernode/main.qml +++ b/examples/quick/scenegraph/rendernode/main.qml @@ -38,7 +38,7 @@ ** ****************************************************************************/ -import QtQuick 2.0 +import QtQuick 2.8 // for RendererInfo import SceneGraphRendering 2.0 Item { @@ -89,7 +89,8 @@ Item { anchors.right: renderer.right anchors.margins: 20 wrapMode: Text.WordWrap - text: "Custom rendering via the graphics API " + renderer.graphicsAPI + property int api: RendererInfo.api + text: "Custom rendering via the graphics API " + (api === RendererInfo.OpenGL ? "OpenGL" : (api === RendererInfo.Direct3D12 ? "Direct3D 12" : "")) color: "yellow" } } |