diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-23 07:37:12 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-23 14:06:46 +0200 |
commit | a8b52c80ac54602001b3988ea5f37805c6fe4eb2 (patch) | |
tree | e60fb37afd0c6dfb0c184a9d9ab81132ce7ca69d /sources/shiboken2/ApiExtractor/messages.cpp | |
parent | 8526bf4f922df87a0c51d9447bf498a3290dfdbf (diff) |
shiboken2: Add a way of specifying properties in typesystem XML
Add a list of TypeSystemProperty to ComplexTypeEntry, parse it from
XML and add those properties in
AbstractMetaBuilderPrivate::parseQ_Properties().
Task-number: PYSIDE-1019
Change-Id: Idf6ecde7c9de6bf1e56be423921672152e97de70
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/messages.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/messages.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/messages.cpp b/sources/shiboken2/ApiExtractor/messages.cpp index 031c74324..95dcda558 100644 --- a/sources/shiboken2/ApiExtractor/messages.cpp +++ b/sources/shiboken2/ApiExtractor/messages.cpp @@ -1,4 +1,4 @@ -/**************************************************************************** +/**************************************************************************** ** ** Copyright (C) 2018 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ @@ -378,6 +378,13 @@ QString msgPropertyTypeParsingFailed(const QString &name, const QString &typeNam return result; } +QString msgPropertyExists(const QString &className, const QString &name) +{ + return QLatin1String("class ") + className + + QLatin1String(" already has a property \"") + name + + QLatin1String("\" (defined by Q_PROPERTY)."); +} + // docparser.cpp QString msgCannotFindDocumentation(const QString &fileName, |