Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
0adf7373
Commit
0adf7373
authored
Mar 01, 2011
by
Thomas Hartmann
Browse files
QmlDesigner.rewriter: complain about Link errors
If linking fails we show an error message.
parent
0a02b85e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/model/texttomodelmerger.cpp
View file @
0adf7373
...
...
@@ -243,8 +243,8 @@ public:
:
m_snapshot
(
snapshot
)
,
m_doc
(
doc
)
,
m_context
(
new
Interpreter
::
Context
)
,
m_lookupContext
(
LookupContext
::
create
(
doc
,
snapshot
,
QList
<
AST
::
Node
*>
()))
,
m_link
(
m_context
,
doc
,
snapshot
,
importPaths
)
,
m_lookupContext
(
LookupContext
::
create
(
doc
,
snapshot
,
*
m_context
,
QList
<
AST
::
Node
*>
()))
,
m_scopeBuilder
(
m_context
,
doc
,
snapshot
)
{
}
...
...
@@ -501,12 +501,15 @@ public:
LookupContext
::
Ptr
lookupContext
()
const
{
return
m_lookupContext
;
}
QList
<
DiagnosticMessage
>
diagnosticLinkMessages
()
const
{
return
m_link
.
diagnosticMessages
();
}
private:
Snapshot
m_snapshot
;
Document
::
Ptr
m_doc
;
Interpreter
::
Context
*
m_context
;
LookupContext
::
Ptr
m_lookupContext
;
Link
m_link
;
LookupContext
::
Ptr
m_lookupContext
;
ScopeBuilder
m_scopeBuilder
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment