summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-08-09 14:45:49 +0200
committerUlf Hermann <ulf.hermann@qt.io>2016-08-09 14:11:16 +0000
commit199c9ed5b377c847890e0719369bfc879fd351ed (patch)
treedf6a9e57b91465a51c7417386cef13d27486fdfe /tools
parentced81dfa5e7d4d4c4958fae7521e32e5a18c8678 (diff)
Make generated signals public
Access control for signals cannot be enforced anyway and QML has a bug that makes the type compiler crash if anything tries to connect to a private signal. Besides, they should be accessible from other code. Change-Id: I9af527f012e3ea8538107b74ce20157f01fef6ae Task-number: QTBUG-51817 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qscxmlc/scxmlcppdumper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qscxmlc/scxmlcppdumper.cpp b/tools/qscxmlc/scxmlcppdumper.cpp
index 4fb8251..6266b8d 100644
--- a/tools/qscxmlc/scxmlcppdumper.cpp
+++ b/tools/qscxmlc/scxmlcppdumper.cpp
@@ -840,7 +840,7 @@ QString CppDumper::generateMetaObject(const QString &className,
signal.type.rawName = signal.type.name;
signal.normalizedType = signal.type.name;
signal.name = mangledStateName + "Changed";
- signal.access = FunctionDef::Private;
+ signal.access = FunctionDef::Public;
signal.isSignal = true;
if (!m_qtMode) {
signal.implementation = "QMetaObject::activate(_o, &staticMetaObject, %d, _a);";