summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativelist.h
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-25 07:06:38 +0100
committerAlexis Menard <alexis.menard@nokia.com>2010-03-25 07:42:02 +0100
commitf4c7b4f046669a4a3d6ed1e8d538e17648d27b4d (patch)
tree69098a2dbe0f9bed1fde83137a15899945487a8c /src/declarative/qml/qdeclarativelist.h
parentc2df63f457229ce8d3806a30f75221796c931c86 (diff)
Protect the QDeclarativeListProperty used in QGraphicsItem with ifdef
Then it fixes the build Reviewed-by:TrustMe
Diffstat (limited to 'src/declarative/qml/qdeclarativelist.h')
-rw-r--r--src/declarative/qml/qdeclarativelist.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativelist.h b/src/declarative/qml/qdeclarativelist.h
index ed402a82e4..bd879905d7 100644
--- a/src/declarative/qml/qdeclarativelist.h
+++ b/src/declarative/qml/qdeclarativelist.h
@@ -54,6 +54,9 @@ QT_MODULE(Declarative)
class QObject;
struct QMetaObject;
+
+#ifndef QDECLARATIVELISTPROPERTY
+#define QDECLARATIVELISTPROPERTY
template<typename T>
struct QDeclarativeListProperty {
typedef void (*AppendFunction)(QDeclarativeListProperty<T> *, T*);
@@ -106,6 +109,7 @@ private:
return ((QList<T *> *)p->data)->clear();
}
};
+#endif
class QDeclarativeEngine;
class QDeclarativeListReferencePrivate;