aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmllint/data/SharedFunctions.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qmllint/data/SharedFunctions.js')
-rw-r--r--tests/auto/qml/qmllint/data/SharedFunctions.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/SharedFunctions.js b/tests/auto/qml/qmllint/data/SharedFunctions.js
new file mode 100644
index 0000000000..3398d2d6d7
--- /dev/null
+++ b/tests/auto/qml/qmllint/data/SharedFunctions.js
@@ -0,0 +1,5 @@
+.pragma library
+
+function setColorAlpha(color, alpha) {
+ return Qt.hsla(color.hslHue, color.hslSaturation, color.hslLightness, alpha)
+}