From 19e37bae5767140c6cab6c24c05892c351c8979c Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Mon, 29 Mar 2010 22:07:02 +0100 Subject: Roster render dummy takes 1 minute 34 seconds on my laptop diff --git a/Swift/QtUI/Roster/Roster.pro b/Swift/QtUI/Roster/Roster.pro index be0cff3..4a55ee7 100644 --- a/Swift/QtUI/Roster/Roster.pro +++ b/Swift/QtUI/Roster/Roster.pro @@ -1,8 +1,18 @@ include(Roster.pri) SOURCES += main.cpp -DEPENDPATH += ../. ../../.. ../../../3rdParty/Boost -INCLUDEPATH += ../. ../../.. ../../../3rdParty/Boost +DEPENDPATH += ../. ../../.. ../../../3rdParty/Boost/src +INCLUDEPATH += ../. ../../.. ../../../3rdParty/Boost/src + +LIBS += ../../../Swiften/libSwiften.a +LIBS += ../../../3rdParty/Boost/libBoost.a +LIBS += ../../../3rdParty/LibIDN/libIDN.a + +mac { + DEFINES += SWIFT_PLATFORM_MACOSX +} + +CONFIG -= app_bundle DEFINES += BOOST_SIGNALS_NAMESPACE=bsignals BOOST_ALL_NO_LIB @@ -15,4 +25,4 @@ mac { DEFINES += SWIFT_PLATFORM_MACOSX } -RESOURCES += ../Swift.qrc \ No newline at end of file +RESOURCES += ../Swift.qrc 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(treeWidgetFactory.createTreeWidgetItem(tree)); + group->setText("Many People"); + + for (int i = 0; i < 600; i++) { + Swift::QtTreeWidgetItem* item = dynamic_cast(treeWidgetFactory.createTreeWidgetItem(group)); + item->setText(Q2PSTRING(QString("Some person %1").arg(i))); + + } + + return app.exec(); +} -- cgit v0.10.2-6-g49f6