summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-12-15 22:25:00 +0100
committerOlivier Goffart <ogoffart@trolltech.com>2009-12-16 10:12:10 +0100
commit0414a73942272d8e863e464b3fbffeb9982964c1 (patch)
treee900bd26021e41c99133ea94efcb1978bf5815e5 /src/tools
parent802efaf0b20e08bcc04763a288a05551121493e8 (diff)
downloadqt4-tools-0414a73942272d8e863e464b3fbffeb9982964c1.tar.gz
Fix moc generated code with dummy Q_PROPERTY
If there is properties, we cannot skip the code that substract the property number from the id Task-number: QTBUG-5590 Reviewed-by: Brad
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/moc/generator.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/tools/moc/generator.cpp b/src/tools/moc/generator.cpp
index 8fcc0df64b..1a75cf6bf2 100644
--- a/src/tools/moc/generator.cpp
+++ b/src/tools/moc/generator.cpp
@@ -725,16 +725,6 @@ void Generator::generateMetacall()
needEditable |= p.editable.endsWith(')');
needUser |= p.user.endsWith(')');
}
- bool needAnything = needGet
- | needSet
- | needReset
- | needDesignable
- | needScriptable
- | needStored
- | needEditable
- | needUser;
- if (!needAnything)
- goto skip_properties;
fprintf(out, "\n#ifndef QT_NO_PROPERTIES\n ");
if (needElse)
@@ -904,7 +894,6 @@ void Generator::generateMetacall()
fprintf(out, "\n#endif // QT_NO_PROPERTIES");
}
- skip_properties:
if (methodList.size() || cdef->signalList.size() || cdef->propertyList.size())
fprintf(out, "\n ");
fprintf(out,"return _id;\n}\n");