Commit 74bf5d98 authored by hjk's avatar hjk
Browse files

debugger: add a simple-minded dumper for QRegion

parent afeb8042
......@@ -1377,6 +1377,13 @@ def qdump__QRectF(d, item):
d.putItem(Item(h, None, None, "h"))
def qdump__QRegion(d, item):
d.putValue(" ")
d.putNumChild(1)
if d.isExpanded(item):
with Children(d):
d.putCallItem("rects", item, "rects()")
def qdump__QSet(d, item):
def hashDataFirstNode(value):
......
......@@ -60,6 +60,7 @@
#include <QtGui/QLabel>
#include <QtGui/QPainter>
#include <QtGui/QPainterPath>
#include <QtGui/QRegion>
#include <QtGui/QStandardItemModel>
#include <QtNetwork/QHostAddress>
......@@ -803,6 +804,15 @@ void testQPixmap()
Q_UNUSED(i);
}
void testQRegion()
{
QRegion region;
region += QRect(100, 100, 200, 200);
region += QRect(300, 300, 400, 500);
region += QRect(500, 500, 600, 600);
}
void testPlugin()
{
QString dir = QDir::currentPath();
......@@ -1793,6 +1803,7 @@ int main(int argc, char *argv[])
//testWCout0();
//testWCout();
testColor();
testQRegion();
testStuff();
testPeekAndPoke3();
testFunctionPointer();
......
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