From ba17fb205a307197129116d441b7d8f2910ae760 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 17 Mar 2010 11:44:04 +0100 Subject: [PATCH] debugger: update peek&poke 3 example --- share/qtcreator/gdbmacros/dumper.py | 2 +- tests/manual/gdbdebugger/simple/app.cpp | 30 ++++++++++++++----------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/share/qtcreator/gdbmacros/dumper.py b/share/qtcreator/gdbmacros/dumper.py index 4e78f6e61fd..5c28e63cd1f 100644 --- a/share/qtcreator/gdbmacros/dumper.py +++ b/share/qtcreator/gdbmacros/dumper.py @@ -1353,7 +1353,7 @@ class Dumper: def listAnonymous(self, item, name, type): for field in type.fields(): - warn("FIELD NAME: %s" % field.name) + #warn("FIELD NAME: %s" % field.name) if len(field.name) > 0: value = item.value[field.name] child = Item(value, item.iname, field.name, field.name) diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index f334fadbd06..5834b359a9a 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -236,19 +236,6 @@ void testPeekAndPoke3() a.i = 3; // Continue. } - // QImage display - { - QImage im(QSize(200, 200), QImage::Format_RGB32); - im.fill(QColor(200, 100, 130).rgba()); - QPainter pain; - pain.begin(&im); - pain.drawLine(2, 2, 130, 130); // Break here. - // Toggle between "Normal" and "Displayed" in L&W Context Menu, entry "Display of Type QImage". Step. - pain.drawLine(4, 2, 130, 140); // Step. - pain.drawRect(30, 30, 80, 80); - pain.end(); - } - // Complex watchers { struct S { int a; double b; } s[10]; @@ -259,6 +246,23 @@ void testPeekAndPoke3() // Expand it, continue stepping. } } + + // QImage display + { + QImage im(QSize(200, 200), QImage::Format_RGB32); + im.fill(QColor(200, 10, 30).rgba()); + QPainter pain; + pain.begin(&im); + pain.setPen(QPen(Qt::black, 5.0, Qt::SolidLine, Qt::RoundCap)); + pain.drawEllipse(20, 20, 160, 160); // Break here. Step. + // Toggle between "Normal" and "Displayed" in L&W Context Menu, entry "Display of Type QImage". Step. + pain.drawArc(70, 115, 60, 30, 200 * 16, 140 * 16); + pain.setBrush(Qt::black); + pain.drawEllipse(65, 70, 15, 15); // Step. + pain.drawEllipse(120, 70, 15, 15); // Step. + pain.end(); + } + } void testAnonymous() -- GitLab