diff options
Diffstat (limited to 'Swift/QtUI/Roster/main.cpp')
-rw-r--r-- | Swift/QtUI/Roster/main.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Swift/QtUI/Roster/main.cpp b/Swift/QtUI/Roster/main.cpp index 2ef6697..406d775 100644 --- a/Swift/QtUI/Roster/main.cpp +++ b/Swift/QtUI/Roster/main.cpp @@ -31,5 +31,14 @@ int main(int argc, char *argv[]) item4->setText("Kim"); } - return app.exec(); -}
\ No newline at end of file + Swift::QtTreeWidgetItem* group = dynamic_cast<Swift::QtTreeWidgetItem*>(treeWidgetFactory.createTreeWidgetItem(tree)); + group->setText("Many People"); + + for (int i = 0; i < 600; i++) { + Swift::QtTreeWidgetItem* item = dynamic_cast<Swift::QtTreeWidgetItem*>(treeWidgetFactory.createTreeWidgetItem(group)); + item->setText(Q2PSTRING(QString("Some person %1").arg(i))); + + } + + return app.exec(); +} |