summaryrefslogtreecommitdiffstats
path: root/tests/auto/qdbusabstractinterface/pinger.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/pinger.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/pinger.h')
-rw-r--r--tests/auto/qdbusabstractinterface/pinger.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/auto/qdbusabstractinterface/pinger.h b/tests/auto/qdbusabstractinterface/pinger.h
index 3ff218c..6e92e65 100644
--- a/tests/auto/qdbusabstractinterface/pinger.h
+++ b/tests/auto/qdbusabstractinterface/pinger.h
@@ -49,8 +49,8 @@
* Do not edit! All changes made to it will be lost.
*/
-#ifndef PINGER_H_1246371899
-#define PINGER_H_1246371899
+#ifndef PINGER_H_1246460303
+#define PINGER_H_1246460303
#include <QtCore/QObject>
#include <QtCore/QByteArray>
@@ -89,6 +89,12 @@ public:
inline void setStringProp(const QString &value)
{ internalPropSet("stringProp", qVariantFromValue(value)); }
+ Q_PROPERTY(QDBusVariant variantProp READ variantProp WRITE setVariantProp)
+ inline QDBusVariant variantProp() const
+ { return qvariant_cast< QDBusVariant >(internalPropGet("variantProp")); }
+ inline void setVariantProp(const QDBusVariant &value)
+ { internalPropSet("variantProp", qVariantFromValue(value)); }
+
public Q_SLOTS: // METHODS
inline QDBusPendingReply<RegisteredType> complexMethod()
{