aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/embeddedinwidgets
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2021-04-30 10:13:56 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2021-05-03 10:17:18 +0200
commit63b418eb549e45782b3dbcaeb963a042e3db8f93 (patch)
treebe69c1281f1bcc52bc81adef246fa25c12c3019a /examples/quick/embeddedinwidgets
parent1922fcbb7603549adbd1954c0eb250ce0867c60b (diff)
examples: Use template literals for multiline strings
Change-Id: I660a74730edf60d0b7760162b441e3e14749e930 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples/quick/embeddedinwidgets')
-rw-r--r--examples/quick/embeddedinwidgets/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/embeddedinwidgets/main.qml b/examples/quick/embeddedinwidgets/main.qml
index e46f027bdb..e644a76587 100644
--- a/examples/quick/embeddedinwidgets/main.qml
+++ b/examples/quick/embeddedinwidgets/main.qml
@@ -103,7 +103,7 @@ Rectangle {
property variant source: column;
property size sourceSize: Qt.size(0.5 / column.width, 0.5 / column.height);
- fragmentShader: "
+ fragmentShader: `
varying highp vec2 qt_TexCoord0;
uniform lowp sampler2D source;
uniform lowp vec2 sourceSize;
@@ -117,6 +117,6 @@ Rectangle {
+ texture2D(source, tc + sourceSize * vec2(-1, 1))
);
gl_FragColor = col * qt_Opacity * (1.0 - qt_TexCoord0.y) * 0.2;
- }"
+ }`
}
}