summaryrefslogtreecommitdiff
path: root/src/qdoc/qmlcodemarker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/qmlcodemarker.cpp')
-rw-r--r--src/qdoc/qmlcodemarker.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/qdoc/qmlcodemarker.cpp b/src/qdoc/qmlcodemarker.cpp
index 1de965891..9e2737604 100644
--- a/src/qdoc/qmlcodemarker.cpp
+++ b/src/qdoc/qmlcodemarker.cpp
@@ -91,15 +91,9 @@ QString QmlCodeMarker::markedUpName(const Node *node)
return name;
}
-QString QmlCodeMarker::markedUpIncludes(const QStringList &includes)
+QString QmlCodeMarker::markedUpInclude(const QString &include)
{
- QString code;
-
- for (const auto &include : includes)
- code += "import " + include + QLatin1Char('\n');
-
- Location location;
- return addMarkUp(code, nullptr, location);
+ return addMarkUp("import " + include, nullptr, Location{});
}
QString QmlCodeMarker::addMarkUp(const QString &code, const Node * /* relative */,