summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-03-29 21:07:02 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-03-29 21:07:02 (GMT)
commit19e37bae5767140c6cab6c24c05892c351c8979c (patch)
treec6964c1e0bf9097008e49c811d3774e9186bb24b
parent358e411668b5c4df093e86c86d39044f92ac552a (diff)
downloadswift-contrib-19e37bae5767140c6cab6c24c05892c351c8979c.zip
swift-contrib-19e37bae5767140c6cab6c24c05892c351c8979c.tar.bz2
Roster render dummy takes 1 minute 34 seconds on my laptop
-rw-r--r--Swift/QtUI/Roster/Roster.pro16
-rw-r--r--Swift/QtUI/Roster/main.cpp13
2 files changed, 24 insertions, 5 deletions
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<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();
+}