Commit 0733a70d authored by hjk's avatar hjk
Browse files

debugger: add simple QUrl dumper

parent 3d1a97e6
......@@ -1440,6 +1440,15 @@ def qdump__QTextCodec(d, item):
d.putCallItem("name", item, "name()")
d.putCallItem("mibEnum", item, "mibEnum()")
def qdump__QUrl(d, item):
d_ptr = item.value["d"].dereference()
d.putStringValue(d_ptr["encodedOriginal"])
d.putNumChild(1)
if d.isExpanded(item):
with Children(d):
d.putItem(Item(d_ptr, item.iname, "d", "d"))
def qdumpHelper__QVariant(d, value):
#warn("VARIANT TYPE: %s : " % variantType)
data = value["d"]["data"]
......
......@@ -47,6 +47,7 @@
#include <QtCore/QThread>
#include <QtCore/QVariant>
#include <QtCore/QVector>
#include <QtCore/QUrl>
#if QT_VERSION >= 0x040500
#include <QtCore/QSharedPointer>
#endif
......@@ -1165,6 +1166,8 @@ void testQStack()
void testQString()
{
QUrl url(QString("http://www.nokia.com"));
QString str = "Hello ";
str += " big, ";
str += " fat ";
......
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