summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/qdbuscpp2xml
diff options
context:
space:
mode:
authorIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2023-08-02 14:34:03 +0200
committerIevgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>2023-08-03 16:09:17 +0200
commit8d89b4ef2115a830086b892db1bce9e4c2ad1e09 (patch)
tree34a5354429654e1d380a357ea4ca05ff12da7f1b /tests/auto/tools/qdbuscpp2xml
parent3f3b2be870c34ef72034d4b853ef202e478c7cb7 (diff)
qdbuscpp2xml: Support MEMBER field of Q_PROPERTY
Emit properties with MEMBER field specified with 'readwrite' access. Previously only READ and WRITE filed where used for deriving the access value. Add a property using MEMBER to the test class used by tst_qdbuscpp2xml. Fixes: QTBUG-115631 Change-Id: I12351985a9fafd934ccc5e0b805077a9e44b6608 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/tools/qdbuscpp2xml')
-rw-r--r--tests/auto/tools/qdbuscpp2xml/test1.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/tools/qdbuscpp2xml/test1.h b/tests/auto/tools/qdbuscpp2xml/test1.h
index abe1763d56..76fdaff7e9 100644
--- a/tests/auto/tools/qdbuscpp2xml/test1.h
+++ b/tests/auto/tools/qdbuscpp2xml/test1.h
@@ -17,6 +17,7 @@ class Test1 : public QObject
Q_CLASSINFO("D-Bus Interface", "org.qtProject.qdbuscpp2xmlTests.Test1")
Q_PROPERTY(int numProperty1 READ numProperty1 CONSTANT)
Q_PROPERTY(int numProperty2 READ numProperty2 WRITE setNumProperty2)
+ Q_PROPERTY(int numProperty3 MEMBER m_numProperty3)
Q_ENUMS(Salaries)
public:
// C++1y allows use of single quote as a digit separator, useful for large
@@ -97,6 +98,9 @@ protected:
private:
Q_SCRIPTABLE void neverExported11() {}
Q_SCRIPTABLE int neverExported12() { return 42; }
+
+private:
+ int m_numProperty3;
};
#endif