summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI')
-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();
+}