debugger: fix regression in QVector dumper

Was broken due to a change in the QVector implementation (See 343e848abc1 and
a07385de156 in Qt master)
This commit is contained in:
hjk
2009-07-10 09:48:51 +02:00
parent 452c712422
commit 717ae824ce
2 changed files with 11 additions and 7 deletions

View File

@@ -1338,12 +1338,13 @@ void QtDumperHelper::evaluationParameters(const WatchData &data,
case QAbstractItemType:
inner = data.addr.mid(1);
break;
case QVectorType:
extraArgs[1] = QLatin1String("(char*)&((");
extraArgs[1] += data.exp;
extraArgs[1] += QLatin1String(").d->array)-(char*)");
extraArgs[1] += data.exp;
extraArgs[1] += QLatin1String(".d");
case QVectorType:
if (m_qtVersion >= 0x040600)
extraArgs[1] = QString("(char*)&((%1).p->array)-(char*)((%2).p)")
.arg(data.exp).arg(data.exp);
else
extraArgs[1] = QString("(char*)&((%1).d->array)-(char*)((%2).d)")
.arg(data.exp).arg(data.exp);
break;
case QObjectSlotType:
case QObjectSignalType: {