diff options
author | David Schulz <david.schulz@digia.com> | 2014-10-28 12:17:06 +0100 |
---|---|---|
committer | David Schulz <david.schulz@digia.com> | 2014-10-31 08:46:57 +0100 |
commit | 0581f22bdcf7e08eb605a5b73338c261359d5f37 (patch) | |
tree | c7207be82f8e829353fbfc35b1bbfc7081831445 /src/libs | |
parent | 7bfa174b87259f30f783d62a2b6475ac8dcd7f49 (diff) | |
download | qt-creator-0581f22bdcf7e08eb605a5b73338c261359d5f37.tar.gz |
CdbExt: Add Dumper for QTimeZone.
Change-Id: Ic107154400550227dad58194aca70b5370f147bc
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/qtcreatorcdbext/knowntype.h | 1 | ||||
-rw-r--r-- | src/libs/qtcreatorcdbext/symbolgroupvalue.cpp | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/qtcreatorcdbext/knowntype.h b/src/libs/qtcreatorcdbext/knowntype.h index b2da97e716..cf7de8cf02 100644 --- a/src/libs/qtcreatorcdbext/knowntype.h +++ b/src/libs/qtcreatorcdbext/knowntype.h @@ -143,6 +143,7 @@ enum KnownType KT_QScriptValue = KT_Qt_Type + KT_HasSimpleDumper + 91, KT_QHostAddress = KT_Qt_Type + KT_HasSimpleDumper + 92, KT_QProcess = KT_Qt_Type + KT_HasSimpleDumper + 93, + KT_QTimeZone = KT_Qt_Type + KT_HasSimpleDumper + 94, // Types: Qt primitive types KT_QFixed = KT_Qt_Type + KT_Qt_PrimitiveType + 90, KT_QTextItem = KT_Qt_Type + KT_Qt_PrimitiveType + 91, diff --git a/src/libs/qtcreatorcdbext/symbolgroupvalue.cpp b/src/libs/qtcreatorcdbext/symbolgroupvalue.cpp index 00c70b1bb2..2448a11edf 100644 --- a/src/libs/qtcreatorcdbext/symbolgroupvalue.cpp +++ b/src/libs/qtcreatorcdbext/symbolgroupvalue.cpp @@ -1225,6 +1225,8 @@ static KnownType knownClassTypeHelper(const std::string &type, return KT_QMetaEnum; if (!type.compare(qPos, 9, "QTextItem")) return KT_QTextItem; + if (!type.compare(qPos, 9, "QTimeZone")) + return KT_QTimeZone; if (!type.compare(qPos, 9, "QVector2D")) return KT_QVector2D; if (!type.compare(qPos, 9, "QVector3D")) @@ -2147,6 +2149,11 @@ static bool dumpQDateTime(const SymbolGroupValue &v, std::wostream &str) return true; } +static bool dumpQTimeZone(const SymbolGroupValue &v, std::wostream &str) +{ + return dumpQByteArrayFromQPrivateClass(v, QPDM_qSharedDataPadded, SymbolGroupValue::pointerSize(), str); +} + static bool dumpQPixmap(const SymbolGroupValue &v, std::wostream &str) { const SymbolGroupValue pixmapSharedData = v["data"]["d"]; @@ -2767,6 +2774,9 @@ unsigned dumpSimpleType(SymbolGroupNode *n, const SymbolGroupValueContext &ctx, case KT_QDateTime: rc = dumpQDateTime(v, str) ? SymbolGroupNode::SimpleDumperOk : SymbolGroupNode::SimpleDumperFailed; break; + case KT_QTimeZone: + rc = dumpQTimeZone(v, str) ? SymbolGroupNode::SimpleDumperOk : SymbolGroupNode::SimpleDumperFailed; + break; case KT_QPoint: case KT_QPointF: rc = dumpQPoint_F(v, str) ? SymbolGroupNode::SimpleDumperOk : SymbolGroupNode::SimpleDumperFailed; |