summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-04-27 11:51:55 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-19 16:39:57 +0200
commitc85dc033dc58b06f1fc3cef6c2667f6516ac12b4 (patch)
treeacb39220bfbfa25d98b4454cc6d1053898facd38 /tests/auto/tools
parent083f7c501fa3d71160f139a0f37fa659424b4d97 (diff)
add $$reverse() function
returns the list with the order of the elements reversed. one can easily implement this with existing functions, but this is way faster and more readable. Change-Id: I12d306eb9fe58fc332622274ea6b658192529491 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'tests/auto/tools')
-rw-r--r--tests/auto/tools/qmake/testdata/functions/functions.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/tools/qmake/testdata/functions/functions.pro b/tests/auto/tools/qmake/testdata/functions/functions.pro
index 5fcfd8c1ce..9ec2ffe93f 100644
--- a/tests/auto/tools/qmake/testdata/functions/functions.pro
+++ b/tests/auto/tools/qmake/testdata/functions/functions.pro
@@ -144,3 +144,5 @@ win32: \
else: \
out = "'some nasty\" path\\'"
testReplace($$shell_quote($$in), $$out, "shell_quote")
+
+testReplace($$reverse($$list(one two three)), three two one, "reverse")