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
Marco Bubke
flatpak-qt-creator
Commits
0b0b485f
Commit
0b0b485f
authored
May 16, 2011
by
Thomas Hartmann
Browse files
QmlDesigner.model: add convertTypeToImportAlias() to ModelNode
We expose convertTypeToImportAlias() in ModelNode.
parent
8723da0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/designercore/include/modelnode.h
View file @
0b0b485f
...
...
@@ -173,6 +173,8 @@ public:
void
setCustomParserSource
(
const
QString
&
);
QString
customParserSource
()
const
;
QString
convertTypeToImportAlias
()
const
;
private:
// functions
Internal
::
InternalNodePointer
internalNode
()
const
;
QString
generateNewId
()
const
;
...
...
src/plugins/qmldesigner/designercore/model/modelnode.cpp
View file @
0b0b485f
...
...
@@ -960,4 +960,16 @@ QString ModelNode::customParserSource() const
return
internalNode
()
->
customParserSource
();
}
QString
ModelNode
::
convertTypeToImportAlias
()
const
{
if
(
!
isValid
())
{
throw
InvalidModelNodeException
(
__LINE__
,
__FUNCTION__
,
__FILE__
);
}
if
(
model
()
->
rewriterView
())
return
model
()
->
rewriterView
()
->
convertTypeToImportAlias
(
type
());
return
type
();
}
}
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