Commit 5cc14426 authored by hjk's avatar hjk
Browse files

debugger: implement dumper for QBasicAtomicPointer

parent 9cb8fe01
......@@ -19,6 +19,18 @@ def qdump__QBasicAtomicInt(d, item):
d.putNumChild(0)
def qdump__QBasicAtomicPointer(d, item):
innerType = templateArgument(item.value.type.unqualified(), 0)
d.putType(item.value.type)
p = cleanAddress(item.value["_q_value"])
d.putValue(p)
d.putPointerValue(item.value.address)
d.putNumChild(p)
if d.isExpanded(item):
with Children(d):
d.putItem(item.value["_q_value"])
def qdump__QByteArray(d, item):
d.putByteArrayValue(item.value)
......
......@@ -867,7 +867,7 @@ public:
void testQObject(int &argc, char *argv[])
{
QApplication app(argc, argv);
QString longString = QString(10000, QLatin1Char('A'));
//QString longString = QString(10000, QLatin1Char('A'));
#if 1
Names::Bar::TestObject test;
test.setMyProp1("HELLO");
......@@ -887,7 +887,7 @@ void testQObject(int &argc, char *argv[])
t += "y";
#endif
#if 0
#if 1
QWidget ob;
ob.setObjectName("An Object");
ob.setProperty("USER DEFINED 1", 44);
......@@ -895,6 +895,7 @@ void testQObject(int &argc, char *argv[])
QObject ob1;
ob1.setObjectName("Another Object");
QObject::connect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater()));
QObject::connect(&ob, SIGNAL(destroyed()), &ob1, SLOT(deleteLater()));
//QObject::connect(&app, SIGNAL(lastWindowClosed()), &ob, SLOT(deleteLater()));
#endif
......
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