forked from qt-creator/qt-creator
QmlDesigner: Remove using namespace QmlJS::AST from ChangePropertyVisitor
Change-Id: Ife1542a61abbd1b323ce1fa46854e95de252f2ab Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
54a10d2a37
commit
ff54bc0b5f
@@ -37,7 +37,7 @@ using namespace QmlJS::AST;
|
|||||||
using namespace QmlDesigner;
|
using namespace QmlDesigner;
|
||||||
using namespace QmlDesigner::Internal;
|
using namespace QmlDesigner::Internal;
|
||||||
|
|
||||||
ChangePropertyVisitor::ChangePropertyVisitor(TextModifier &modifier,
|
ChangePropertyVisitor::ChangePropertyVisitor(QmlDesigner::TextModifier &modifier,
|
||||||
quint32 parentLocation,
|
quint32 parentLocation,
|
||||||
const QString &name,
|
const QString &name,
|
||||||
const QString &value,
|
const QString &value,
|
||||||
@@ -50,7 +50,7 @@ ChangePropertyVisitor::ChangePropertyVisitor(TextModifier &modifier,
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChangePropertyVisitor::visit(UiObjectDefinition *ast)
|
bool ChangePropertyVisitor::visit(QmlJS::AST::UiObjectDefinition *ast)
|
||||||
{
|
{
|
||||||
if (didRewriting())
|
if (didRewriting())
|
||||||
return false;
|
return false;
|
||||||
@@ -66,7 +66,7 @@ bool ChangePropertyVisitor::visit(UiObjectDefinition *ast)
|
|||||||
return !didRewriting();
|
return !didRewriting();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChangePropertyVisitor::visit(UiObjectBinding *ast)
|
bool ChangePropertyVisitor::visit(QmlJS::AST::UiObjectBinding *ast)
|
||||||
{
|
{
|
||||||
if (didRewriting())
|
if (didRewriting())
|
||||||
return false;
|
return false;
|
||||||
@@ -160,7 +160,7 @@ void ChangePropertyVisitor::replaceMemberValue(UiObjectMember *propertyMember, b
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (needsSemicolon)
|
if (needsSemicolon)
|
||||||
replacement += ';';
|
replacement += QChar::fromLatin1(';');
|
||||||
|
|
||||||
replace(startOffset, endOffset - startOffset, replacement);
|
replace(startOffset, endOffset - startOffset, replacement);
|
||||||
setDidRewriting(true);
|
setDidRewriting(true);
|
||||||
@@ -192,7 +192,7 @@ bool ChangePropertyVisitor::nextMemberOnSameLine(UiObjectMemberList *members)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: duplicate code in the QmlJS::Rewriter class, remove this
|
// FIXME: duplicate code in the QmlJS::Rewriter class, remove this
|
||||||
void ChangePropertyVisitor::insertIntoArray(UiArrayBinding *ast)
|
void ChangePropertyVisitor::insertIntoArray(QmlJS::AST::UiArrayBinding *ast)
|
||||||
{
|
{
|
||||||
if (!ast)
|
if (!ast)
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user