summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlpropertyvaluesource.h
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-27 01:01:55 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-27 01:01:55 (GMT)
commita488a04e5a5af4255d560d5dfa6423caa48ed5f3 (patch)
tree67250667a40c39da3a343e538bc6960891390195 /src/declarative/qml/qmlpropertyvaluesource.h
parent1b489edbc2c8897ba6cbca4214e998c7d7873e67 (diff)
downloadQt-a488a04e5a5af4255d560d5dfa6423caa48ed5f3.zip
Qt-a488a04e5a5af4255d560d5dfa6423caa48ed5f3.tar.gz
Qt-a488a04e5a5af4255d560d5dfa6423caa48ed5f3.tar.bz2
Make QmlPropertyValueSource an interface.
1st step in animation class heirarchy redesign.
Diffstat (limited to 'src/declarative/qml/qmlpropertyvaluesource.h')
-rw-r--r--src/declarative/qml/qmlpropertyvaluesource.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/declarative/qml/qmlpropertyvaluesource.h b/src/declarative/qml/qmlpropertyvaluesource.h
index 4e5f1c5..ee4ea2c 100644
--- a/src/declarative/qml/qmlpropertyvaluesource.h
+++ b/src/declarative/qml/qmlpropertyvaluesource.h
@@ -42,9 +42,7 @@
#ifndef QMLPROPERTYVALUESOURCE_H
#define QMLPROPERTYVALUESOURCE_H
-#include <QtDeclarative/qfxglobal.h>
-#include <QtDeclarative/qml.h>
-#include <QtCore/QObject>
+#include <QtCore/qobject.h>
QT_BEGIN_HEADER
@@ -52,28 +50,17 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Declarative)
-class QObjectPrivate;
class QmlMetaProperty;
-class Q_DECLARATIVE_EXPORT QmlPropertyValueSource : public QObject
+class Q_DECLARATIVE_EXPORT QmlPropertyValueSource
{
- Q_OBJECT
- Q_DECLARE_PRIVATE(QObject)
-
public:
- QmlPropertyValueSource(QObject *parent);
- virtual void setTarget(const QmlMetaProperty &);
-
-protected:
- QmlPropertyValueSource(QObjectPrivate &dd, QObject *parent);
-
-private:
- Q_DISABLE_COPY(QmlPropertyValueSource)
+ QmlPropertyValueSource();
+ virtual void setTarget(const QmlMetaProperty &) = 0;
};
+Q_DECLARE_INTERFACE(QmlPropertyValueSource, "com.trolltech.qml.QmlPropertyValueSource")
QT_END_NAMESPACE
-QML_DECLARE_TYPE(QmlPropertyValueSource)
-
QT_END_HEADER
#endif // QMLPROPERTYVALUESOURCE_H