summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeprivate.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-06-16 07:25:13 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-06-16 07:25:13 (GMT)
commit1937adaab5861ced44813c6a4b0bff1c3750ecd3 (patch)
treee30aa1bec8dace42b5c70ec3d21fc1725886c98f /src/declarative/qml/qdeclarativeprivate.h
parentbb8142436bacf5a4fa31880b58a8b3b6bc7b4d5b (diff)
downloadQt-1937adaab5861ced44813c6a4b0bff1c3750ecd3.zip
Qt-1937adaab5861ced44813c6a4b0bff1c3750ecd3.tar.gz
Qt-1937adaab5861ced44813c6a4b0bff1c3750ecd3.tar.bz2
Move knowledge of QGraphicsObject out of qml engine
Diffstat (limited to 'src/declarative/qml/qdeclarativeprivate.h')
-rw-r--r--src/declarative/qml/qdeclarativeprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeprivate.h b/src/declarative/qml/qdeclarativeprivate.h
index e657dd5..cd859fe 100644
--- a/src/declarative/qml/qdeclarativeprivate.h
+++ b/src/declarative/qml/qdeclarativeprivate.h
@@ -214,6 +214,10 @@ namespace QDeclarativePrivate
const char *iid;
};
+ enum AutoParentResult { Parented, IncompatibleObject, IncompatibleParent };
+ typedef AutoParentResult (*AutoParentFunction)(QObject *object, QObject *parent);
+
+ int Q_DECLARATIVE_EXPORT registerAutoParentFunction(AutoParentFunction);
int Q_DECLARATIVE_EXPORT registerType(const RegisterType &);
int Q_DECLARATIVE_EXPORT registerType(const RegisterInterface &);