summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/moc/tst_moc.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-11-23 14:11:27 +0100
committerUlf Hermann <ulf.hermann@qt.io>2022-11-27 12:47:30 +0100
commit481338751b7e1ca7ddc363bd791d1bf5e58f412d (patch)
tree7ef7d39ed0e5e4c7c0febee734d3ecab34673fd3 /tests/auto/tools/moc/tst_moc.cpp
parent7d7ed24f517aff2f4bf9f2e32a29603476af6c88 (diff)
moc: Output the "cloned" flag for methods
We will need it in QML to determine which signal out of a number of "overloads" to generate handlers for. Task-number: QTBUG-108762 Change-Id: Ib73eeb59dbf037bd03faf0d841860d9ebc9e7032 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/tools/moc/tst_moc.cpp')
-rw-r--r--tests/auto/tools/moc/tst_moc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp
index 3ed8f1a766..35c31b6b87 100644
--- a/tests/auto/tools/moc/tst_moc.cpp
+++ b/tests/auto/tools/moc/tst_moc.cpp
@@ -56,6 +56,8 @@
#include "fwdclass2.h"
#include "fwdclass3.h"
+#include "signal-with-default-arg.h"
+
#include "qmlmacro.h"
#ifdef Q_MOC_RUN
@@ -767,6 +769,7 @@ signals:
void constSignal2(int arg) const;
void member4Changed();
void member5Changed(const QString &newVal);
+ void sigWithDefaultArg(int i = 12);
private:
bool user1() { return true; };