Debugger: Adapt QXmlAttributes dumper to Qt6

Task-number: QTCREATORBUG-24098
Change-Id: I67ee0fae1308d20b474fe0dd565b46d2a83dd5e3
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2020-11-25 10:25:08 +01:00
parent 786c131beb
commit 0ce92b3ac7
2 changed files with 7 additions and 5 deletions

View File

@@ -2202,10 +2202,11 @@ def qdump__QXmlAttributes__Attribute(d, value):
def qdump__QXmlAttributes(d, value):
(vptr, atts) = value.split('pP')
innerType = d.createType(d.qtNamespace() + 'QXmlAttributes::Attribute', 4 * d.ptrSize())
val = d.createListItem(atts, innerType)
qdumpHelper_QList(d, val, innerType)
vptr, atts = value.split('p{QList<QXmlAttributes::Attribute>}')
_, att_size, _ = d.describeStruct('{QString}' * 4)
innerType = d.createType(d.qtNamespace() + 'QXmlAttributes::Attribute',
att_size)
qdumpHelper_QList(d, atts, innerType)
def qdump__QXmlStreamStringRef(d, value):

View File

@@ -1050,7 +1050,8 @@ public:
{
this->operator+(CoreProfile());
profileExtra +=
" QT += xml\n";
"greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat\n"
"else: QT += xml\n";
cmakelistsExtra +=
"find_package(Qt5 COMPONENTS Core Xml REQUIRED)\n"