forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/7.0'
Conflicts: src/libs/utils/qtcprocess.cpp src/plugins/qmldesigner/components/curveeditor/curveeditorview.cpp src/plugins/qmldesigner/components/itemlibrary/itemlibrarymodel.cpp Change-Id: Id0c31719e46d1c44770ea89663eee321a0517ff4
This commit is contained in:
@@ -2779,6 +2779,8 @@ static void semanticHighlighter(QFutureInterface<HighlightingResult> &future,
|
||||
|| path.rbegin()->kind() == "CXXConstruct")) {
|
||||
return false;
|
||||
}
|
||||
if (path.rbegin()->hasConstType())
|
||||
return false;
|
||||
for (auto it = path.rbegin() + 1; it != path.rend(); ++it) {
|
||||
if (it->kind() == "Call" || it->kind() == "CXXConstruct"
|
||||
|| it->kind() == "MemberInitializer") {
|
||||
@@ -2810,8 +2812,9 @@ static void semanticHighlighter(QFutureInterface<HighlightingResult> &future,
|
||||
const AstNode n = firstChildTree.takeFirst();
|
||||
const QString detail = n.detail().value_or(QString());
|
||||
if (detail.startsWith("operator")) {
|
||||
return !detail.contains('=') && !detail.contains("++")
|
||||
&& !detail.contains("--");
|
||||
return !detail.contains('=')
|
||||
&& !detail.contains("++") && !detail.contains("--")
|
||||
&& !detail.contains("<<") && !detail.contains(">>");
|
||||
}
|
||||
firstChildTree << n.children().value_or(QList<AstNode>());
|
||||
}
|
||||
@@ -4122,7 +4125,7 @@ class MemoryTreeModel : public Utils::BaseTreeModel
|
||||
public:
|
||||
MemoryTreeModel(QObject *parent) : BaseTreeModel(parent)
|
||||
{
|
||||
setHeader({tr("Component"), tr("Total Memory")});
|
||||
setHeader({MemoryUsageWidget::tr("Component"), MemoryUsageWidget::tr("Total Memory")});
|
||||
}
|
||||
|
||||
void update(const MemoryTree &tree)
|
||||
|
||||
Reference in New Issue
Block a user