aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlglobal_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-11-29 17:20:34 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-30 15:21:38 +0100
commitd7996b7637ae0bbc261c32b4f93dd07e66eeda7a (patch)
treed207669d8ad5d713fd1f5bb75672a2a6864b7562 /src/qml/qml/qqmlglobal_p.h
parent18f42ab9b5e5b7bd9bd324af4c2ac449a5c2107e (diff)
Limit case-sensitivity check in QML to file names.
Provide for checking relative paths only; default to file names. Currently, the checking triggers on a drive letters and installation folder names, which is too strict. Task-number: QTBUG-28277 Change-Id: I1174bb0c485eeb1ffee10bb2a523d6629c57728b Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlglobal_p.h')
-rw-r--r--src/qml/qml/qqmlglobal_p.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlglobal_p.h b/src/qml/qml/qqmlglobal_p.h
index 037323dc39..9de7e8f52c 100644
--- a/src/qml/qml/qqmlglobal_p.h
+++ b/src/qml/qml/qqmlglobal_p.h
@@ -204,8 +204,15 @@ struct QQmlGraphics_DerivedObject : public QObject
It may have false positives (say the case is correct when it isn't), but it
should never have a false negative (say the case is incorrect when it is
correct).
+
+ Length specifies specifies the number of characters to be checked from
+ behind. That is, if a file name results from a relative path specification
+ like "foo/bar.qml" and is made absolute, the original length (11) should
+ be passed indicating that only the last part of the relative path should
+ be checked.
+
*/
-bool QQml_isFileCaseCorrect(const QString &fileName);
+bool QQml_isFileCaseCorrect(const QString &fileName, int length = -1);
/*!
Makes the \a object a child of \a parent. Note that when using this method,