summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeglobal_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2012-11-30 10:38:57 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-01 08:27:07 +0100
commit646b60f0d3e45bcc240e5ad77a2700f4287c3162 (patch)
tree77fa832cd9abfcee79c4057d392d140d6fa955a0 /src/declarative/qml/qdeclarativeglobal_p.h
parent1246c5d3b410a29ebb306de2f6a242883187276a (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: I2056a39b605f7891d2c3e395efc6bc541aa7e470 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativeglobal_p.h')
-rw-r--r--src/declarative/qml/qdeclarativeglobal_p.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeglobal_p.h b/src/declarative/qml/qdeclarativeglobal_p.h
index ab9725ba..9f0d5655 100644
--- a/src/declarative/qml/qdeclarativeglobal_p.h
+++ b/src/declarative/qml/qdeclarativeglobal_p.h
@@ -84,8 +84,14 @@ struct QDeclarativeGraphics_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 QDeclarative_isFileCaseCorrect(const QString &fileName);
+bool QDeclarative_isFileCaseCorrect(const QString &fileName, int length = -1);
/*!
Makes the \a object a child of \a parent. Note that when using this method,