summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2016-11-18 13:41:55 +0100
committerUlf Hermann <ulf.hermann@qt.io>2016-11-18 14:34:18 +0000
commit14882b774e730b8e469ed13cb21a0e48c4afb238 (patch)
tree9418f947da1e4d6ea23bc4166065af4925ac4fb7 /tools
parent4b151f2ca90b0fff8201b7bc3c22cff9340f4e91 (diff)
Drop the NOTIFY part from generated Q_PROPERTY macros
They are unnecessary for code completion and somewhat wrong because the signal methods don't actually exist. Change-Id: Ie5326791aaf574fffc9f38b3c6bc786c1204ab45 Task-number: QTBUG-57174 Reviewed-by: Kevin Funk <kevin.funk@kdab.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qscxmlc/scxmlcppdumper.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/qscxmlc/scxmlcppdumper.cpp b/tools/qscxmlc/scxmlcppdumper.cpp
index c29ef90..53988cf 100644
--- a/tools/qscxmlc/scxmlcppdumper.cpp
+++ b/tools/qscxmlc/scxmlcppdumper.cpp
@@ -714,11 +714,8 @@ QString CppDumper::generatePropertyDecls(const GeneratedTableData::MetaDataInfo
QString decls;
for (const QString &stateName : info.stateNames) {
- if (!stateName.isEmpty()) {
- const QString decl = QString::fromLatin1(
- " Q_PROPERTY(bool %1 NOTIFY %2Changed)\n");
- decls += decl.arg(stateName, mangleIdentifier(stateName));
- }
+ if (!stateName.isEmpty())
+ decls += QString::fromLatin1(" Q_PROPERTY(bool %1)\n").arg(stateName);
}
return decls;