diff options
author | hjk <qtc-committer@nokia.com> | 2009-06-03 12:46:55 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-06-03 12:48:48 +0200 |
commit | d7af85a09755a2a6852052b8621448ab6114ea0a (patch) | |
tree | 3bb546d1c3f483de5be135128a9ec43dd558d91e /tests | |
parent | 311ca7a074733ad0f14c79bd903a79b3c81c161f (diff) | |
download | qt-creator-d7af85a09755a2a6852052b8621448ab6114ea0a.tar.gz |
debugger: implement a dumper for QAbstractItemModel
This also squashes a namespace related bug introduced by the watchutils
refactoring.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/gdbdebugger/simple/app.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index de12a5474c..349055c3b2 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -48,6 +48,7 @@ #include <QtGui/QLabel> #include <QtGui/QPainter> #include <QtGui/QPainterPath> +#include <QtGui/QStandardItemModel> #include <QtNetwork/QHostAddress> @@ -787,6 +788,21 @@ void testStdVector() vec.push_back(false); } +void testQStandardItemModel() +{ + QStandardItemModel m; + QStandardItem *i1, *i2, *i11; + m.appendRow(QList<QStandardItem *>() + << (i1 = new QStandardItem("1")) << (new QStandardItem("a"))); + m.appendRow(QList<QStandardItem *>() + << (i2 = new QStandardItem("2")) << (new QStandardItem("b"))); + i1->appendRow(QList<QStandardItem *>() + << (i11 = new QStandardItem("11")) << (new QStandardItem("aa"))); + int i = 1; + ++i; + ++i; +} + void testQString() { QString str = "Hello "; @@ -1090,6 +1106,7 @@ int main(int argc, char *argv[]) QStringList list; list << "aaa" << "bbb" << "cc"; + testQStandardItemModel(); testQImage(); testNoArgumentName(1, 2, 3); testIO(); |