diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-05-02 21:38:20 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2016-05-03 10:12:40 +0000 |
commit | 84fb780d830764bcaa53478a5c5c464865897640 (patch) | |
tree | 35531692fdec60091feca3e51d8e9da05510f661 /src/quick/items/items.pri | |
parent | 3551093f426ef7bbc222b543f573d5d341a43d8e (diff) |
Introduce RendererInfo
Modeled after OpenGLInfo, RendererInfo.api is an easy to use attached
property that reports the current graphics API as long as the item is
associated with a window that has the scenegraph initialized.
Applications should not worry about this in general since they should
target one given API, however tests, examples and some advanced use cases
will find this handy. RendererInfo is also a great place to expose other
properties in the future.
Change-Id: Ie3411b8820fc4b74efd1b1d0143e936886f62d74
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/items.pri')
-rw-r--r-- | src/quick/items/items.pri | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quick/items/items.pri b/src/quick/items/items.pri index 61d81f94be..1c17e7e34d 100644 --- a/src/quick/items/items.pri +++ b/src/quick/items/items.pri @@ -77,7 +77,8 @@ HEADERS += \ $$PWD/qquickshadereffect_p.h \ $$PWD/qquickgenericshadereffect_p.h \ $$PWD/qquickrendercontrol.h \ - $$PWD/qquickrendercontrol_p.h + $$PWD/qquickrendercontrol_p.h \ + $$PWD/qquickrendererinfo_p.h SOURCES += \ $$PWD/qquickevents.cpp \ @@ -130,7 +131,8 @@ SOURCES += \ $$PWD/qquickshadereffectmesh.cpp \ $$PWD/qquickshadereffect.cpp \ $$PWD/qquickgenericshadereffect.cpp \ - $$PWD/qquickrendercontrol.cpp + $$PWD/qquickrendercontrol.cpp \ + $$PWD/qquickrendererinfo.cpp # Items that depend on OpenGL Renderer contains(QT_CONFIG, opengl(es1|es2)?) { |