summaryrefslogtreecommitdiff
path: root/src/controls/Private/FastGlow.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2014-08-09 09:34:42 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-08-12 08:37:04 +0200
commitb3ab05a86bbc6aa2643ba0e0512cdb0f69f29fb4 (patch)
treef9683f761facea9becad6f0fa3735291dd21be6e /src/controls/Private/FastGlow.qml
parente0053372b6641914c8340a67bb2d8a90173bf721 (diff)
downloadqtquickcontrols-b3ab05a86bbc6aa2643ba0e0512cdb0f69f29fb4.tar.gz
Replace usage of Item.window with OpenGLInfo attached property
Change-Id: I53224e2abb2820f3fc472b8b4b42a4cac59d79f5 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/Private/FastGlow.qml')
-rw-r--r--src/controls/Private/FastGlow.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controls/Private/FastGlow.qml b/src/controls/Private/FastGlow.qml
index 6fcb6d4b..79a9a92a 100644
--- a/src/controls/Private/FastGlow.qml
+++ b/src/controls/Private/FastGlow.qml
@@ -38,7 +38,7 @@
**
****************************************************************************/
-import QtQuick 2.2
+import QtQuick 2.4
Item {
id: rootItem
@@ -64,7 +64,7 @@ Item {
hideSource: visible
}
- property string __internalBlurVertexShader: rootItem.window.glslIsCoreProfile ? "#version 150
+ property string __internalBlurVertexShader: OpenGLInfo.profile === OpenGLInfo.CoreProfile ? "#version 150
in vec4 qt_Vertex;
in vec2 qt_MultiTexCoord0;
uniform mat4 qt_Matrix;
@@ -101,7 +101,7 @@ Item {
gl_Position = qt_Matrix * qt_Vertex;
}
"
- property string __internalBlurFragmentShader: rootItem.window.glslIsCoreProfile ? "#version 150
+ property string __internalBlurFragmentShader: OpenGLInfo.profile === OpenGLInfo.CoreProfile ? "#version 150
uniform sampler2D source;
uniform float qt_Opacity;
in vec2 qt_TexCoord0;
@@ -392,7 +392,7 @@ Item {
onLodChanged: calculateWeights()
- fragmentShader: rootItem.window.glslIsCoreProfile ? "#version 150
+ fragmentShader: rootItem.OpenGLInfo.profile === OpenGLInfo.CoreProfile ? "#version 150
uniform sampler2D source1;
uniform sampler2D source2;
uniform sampler2D source3;