diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-08 04:13:41 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-08 04:13:41 (GMT) |
commit | 23e57fcf957bf6337591656ea0071df1b0bd9651 (patch) | |
tree | b93fb1b7f7303cbc485c2ff13f9217c335c5c6a0 /tests | |
parent | 948263bf4bdfec1383f22fc0db50bafca2f8b5c8 (diff) | |
download | Qt-23e57fcf957bf6337591656ea0071df1b0bd9651.zip Qt-23e57fcf957bf6337591656ea0071df1b0bd9651.tar.gz Qt-23e57fcf957bf6337591656ea0071df1b0bd9651.tar.bz2 |
unwarn
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativevaluetypes/testtypes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h b/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h index 0ad8449..64e4980 100644 --- a/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h +++ b/tests/auto/declarative/qdeclarativevaluetypes/testtypes.h @@ -134,6 +134,7 @@ QML_DECLARE_TYPE(MyTypeObject); class MyConstantValueSource : public QObject, public QDeclarativePropertyValueSource { Q_OBJECT + Q_INTERFACES(QDeclarativePropertyValueSource) public: virtual void setTarget(const QDeclarativeProperty &p) { p.write(3345); } }; @@ -142,6 +143,7 @@ QML_DECLARE_TYPE(MyConstantValueSource); class MyOffsetValueInterceptor : public QObject, public QDeclarativePropertyValueInterceptor { Q_OBJECT + Q_INTERFACES(QDeclarativePropertyValueInterceptor) public: virtual void setTarget(const QDeclarativeProperty &p) { prop = p; } virtual void write(const QVariant &value) { QDeclarativePropertyPrivate::write(prop, value.toInt() + 13, QDeclarativePropertyPrivate::BypassInterceptor); } |