summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdbusabstractinterface/interface.h
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-01 15:45:17 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-02 09:43:45 (GMT)
commit43a760280edd49382d01eb1e23ae2a08933b6bf7 (patch)
tree249412355ba5403fdf594e67fdf59a55bbaf64f2 /tests/auto/qdbusabstractinterface/interface.h
parent962b7fde5194a08a83609b9b4367425e52f76614 (diff)
downloadQt-43a760280edd49382d01eb1e23ae2a08933b6bf7.zip
Qt-43a760280edd49382d01eb1e23ae2a08933b6bf7.tar.gz
Qt-43a760280edd49382d01eb1e23ae2a08933b6bf7.tar.bz2
Autotest: add tests for checking variant properties
Diffstat (limited to 'tests/auto/qdbusabstractinterface/interface.h')
-rw-r--r--tests/auto/qdbusabstractinterface/interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qdbusabstractinterface/interface.h b/tests/auto/qdbusabstractinterface/interface.h
index 86e0dc4..f6d34a7 100644
--- a/tests/auto/qdbusabstractinterface/interface.h
+++ b/tests/auto/qdbusabstractinterface/interface.h
@@ -80,10 +80,12 @@ class Interface: public QObject
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "com.trolltech.QtDBus.Pinger")
Q_PROPERTY(QString stringProp READ stringProp WRITE setStringProp SCRIPTABLE true)
+ Q_PROPERTY(QDBusVariant variantProp READ variantProp WRITE setVariantProp SCRIPTABLE true)
Q_PROPERTY(RegisteredType complexProp READ complexProp WRITE setComplexProp SCRIPTABLE true)
friend class tst_QDBusAbstractInterface;
QString m_stringProp;
+ QDBusVariant m_variantProp;
RegisteredType m_complexProp;
public:
@@ -91,6 +93,8 @@ public:
QString stringProp() const { return m_stringProp; }
void setStringProp(const QString &s) { m_stringProp = s; }
+ QDBusVariant variantProp() const { return m_variantProp; }
+ void setVariantProp(const QDBusVariant &v) { m_variantProp = v; }
RegisteredType complexProp() const { return m_complexProp; }
void setComplexProp(const RegisteredType &r) { m_complexProp = r; }