diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-11 11:19:10 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-16 19:25:07 +0000 |
commit | f21206eb95572af8759366fb249c868659c5674c (patch) | |
tree | 642d30620ba6c73fd099d5ddde136a6c85e6133e /sources/shiboken2/ApiExtractor/messages.cpp | |
parent | 38a9dc6cb2ba07be4b2c174a10fb60f1cdfba19a (diff) |
shiboken: Enable including typesystem XML snippets via entities
Implement a QXmlStreamEntityResolver which resolves undeclared entities
to file names in the type system include path.
This is a work-around for the missing handling of standard externally
parsed entities of QXmlStreamReader.
Task-number: PYSIDE-955
Change-Id: I68ebae8ad465ae460c3a0eeadaef22dca2101e6c
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/messages.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/messages.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/messages.cpp b/sources/shiboken2/ApiExtractor/messages.cpp index fa4c75743..fdae2359b 100644 --- a/sources/shiboken2/ApiExtractor/messages.cpp +++ b/sources/shiboken2/ApiExtractor/messages.cpp @@ -167,6 +167,12 @@ QString msgSkippingFunction(const FunctionModelItem &functionItem, return result; } +QString msgCannotResolveEntity(const QString &name, const QString &reason) +{ + return QLatin1String("Cannot resolve entity \"") + name + + QLatin1String("\": ") + reason; +} + QString msgCannotSetArrayUsage(const QString &function, int i, const QString &reason) { return function + QLatin1String(": Cannot use parameter ") |