forked from qt-creator/qt-creator
QmlDesigner: Fix compile before Qt5.10
QString::back() was introduced in Qt5.10. Beside this fix the signature change of void checkNode(). Change-Id: I4945e618274e1a67fc36d33e875c14284a4b160c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -482,7 +482,7 @@ QString RewriterView::auxiliaryDataAsQML() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (str.back() == ';')
|
if (str.endsWith(';'))
|
||||||
str.chop(1);
|
str.chop(1);
|
||||||
|
|
||||||
str += "}";
|
str += "}";
|
||||||
|
@@ -8209,7 +8209,7 @@ void tst_TestCore::changeGradientId()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void checkNode(QmlJS::SimpleReaderNode::Ptr node, TestRewriterView *view);
|
static void checkNode(QmlJS::SimpleReaderNode::Ptr node, TestRewriterView *view);
|
||||||
|
|
||||||
void static checkChildNodes(QmlJS::SimpleReaderNode::Ptr node, TestRewriterView *view)
|
void static checkChildNodes(QmlJS::SimpleReaderNode::Ptr node, TestRewriterView *view)
|
||||||
{
|
{
|
||||||
@@ -8217,7 +8217,7 @@ void static checkChildNodes(QmlJS::SimpleReaderNode::Ptr node, TestRewriterView
|
|||||||
checkNode(child, view);
|
checkNode(child, view);
|
||||||
}
|
}
|
||||||
|
|
||||||
void static checkNode(QmlJS::SimpleReaderNode::Ptr node, TestRewriterView *view)
|
static void checkNode(QmlJS::SimpleReaderNode::Ptr node, TestRewriterView *view)
|
||||||
{
|
{
|
||||||
QVERIFY(node);
|
QVERIFY(node);
|
||||||
QVERIFY(node->propertyNames().contains("i"));
|
QVERIFY(node->propertyNames().contains("i"));
|
||||||
|
Reference in New Issue
Block a user