summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeglobal_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-10-08 03:47:17 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-10-08 03:50:01 (GMT)
commitc4cbd04275906b1bfa1a55147a0a4bb626033a20 (patch)
tree0689a5f311bc3f6d7d48300cd6a7859b6a166239 /src/declarative/qml/qdeclarativeglobal_p.h
parent5447a9590dc0efa1a79fde6235fdcf76d3ae81fe (diff)
downloadQt-c4cbd04275906b1bfa1a55147a0a4bb626033a20.zip
Qt-c4cbd04275906b1bfa1a55147a0a4bb626033a20.tar.gz
Qt-c4cbd04275906b1bfa1a55147a0a4bb626033a20.tar.bz2
Check plugin and QML file case on Mac and Windows
This test should prevent the case where a QML app that is developed on a case insensitive filesystem (like on Mac or Windows) and then run on a case sensitive filesystem (like on Linux) fails to find module plugins, imports and QML files. Task-number: QTBUG-13517
Diffstat (limited to 'src/declarative/qml/qdeclarativeglobal_p.h')
-rw-r--r--src/declarative/qml/qdeclarativeglobal_p.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeglobal_p.h b/src/declarative/qml/qdeclarativeglobal_p.h
index 1041992..65d9b24 100644
--- a/src/declarative/qml/qdeclarativeglobal_p.h
+++ b/src/declarative/qml/qdeclarativeglobal_p.h
@@ -75,6 +75,19 @@ struct QDeclarativeGraphics_DerivedObject : public QObject
};
/*!
+ Returns true if the case of \a fileName is equivalent to the file case of
+ \a fileName on disk, and false otherwise.
+
+ This is used to ensure that the behavior of QML on a case-insensitive file
+ system is the same as on a case-sensitive file system. This function
+ performs a "best effort" attempt to determine the real case of the file.
+ 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).
+*/
+bool QDeclarative_isFileCaseCorrect(const QString &fileName);
+
+/*!
Makes the \a object a child of \a parent. Note that when using this method,
neither \a parent nor the object's previous parent (if it had one) will
receive ChildRemoved or ChildAdded events.