aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qqmltypecompiler_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-01-22 16:40:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-24 12:39:28 +0100
commit6ae57f01bb1495a74b23a81c590672ce788d5400 (patch)
tree2a40e225495a132762d22de0c066b02ecd20630f /src/qml/compiler/qqmltypecompiler_p.h
parent72fffeb2c1086a8b5f5ce5b5410cd0c1da2404ac (diff)
[new compiler] Fix error message when trying to create uncreatable types
Pass along the no-creation-reason properly, for regular qml types as well as singleton types. Also don't collect custom signal parameter names as types to resolve, as we never try to instantiate them anyway. Their type resolution to meta-type id is done lazily when building the meta-objects. Change-Id: I49bd51d9b851cf75cbd51afbcee168944f4350cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qqmltypecompiler_p.h')
-rw-r--r--src/qml/compiler/qqmltypecompiler_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qqmltypecompiler_p.h b/src/qml/compiler/qqmltypecompiler_p.h
index 4340279df8..28229a13a9 100644
--- a/src/qml/compiler/qqmltypecompiler_p.h
+++ b/src/qml/compiler/qqmltypecompiler_p.h
@@ -67,6 +67,8 @@ struct Location;
struct QQmlTypeCompiler
{
+ Q_DECLARE_TR_FUNCTIONS(QQmlTypeCompiler)
+public:
QQmlTypeCompiler(QQmlEnginePrivate *engine, QQmlCompiledData *compiledData, QQmlTypeData *typeData, QtQml::ParsedQML *parsedQML);
bool compile();