Commit 0581f22b authored by David Schulz's avatar David Schulz
Browse files

CdbExt: Add Dumper for QTimeZone.



Change-Id: Ic107154400550227dad58194aca70b5370f147bc
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 7bfa174b
......@@ -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,
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment