summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-07-09 18:19:35 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-07-09 19:54:59 (GMT)
commit51f4923d975af65b9f2f29b179f1e7768e8368d6 (patch)
tree4dd21775132ab480e52ca63d83a27f83486e7435 /Swift/Controllers/Roster/TableRoster.cpp
parent9d0b490523df69c4c846b934c240dcea39df49aa (diff)
downloadswift-51f4923d975af65b9f2f29b179f1e7768e8368d6.zip
swift-51f4923d975af65b9f2f29b179f1e7768e8368d6.tar.bz2
Add avatar path to table roster.
Diffstat (limited to 'Swift/Controllers/Roster/TableRoster.cpp')
-rw-r--r--Swift/Controllers/Roster/TableRoster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/Roster/TableRoster.cpp b/Swift/Controllers/Roster/TableRoster.cpp
index 54f2484..171e8ed 100644
--- a/Swift/Controllers/Roster/TableRoster.cpp
+++ b/Swift/Controllers/Roster/TableRoster.cpp
@@ -90,7 +90,7 @@ size_t TableRoster::getNumberOfRowsInSection(size_t section) const {
return sections[section].items.size();
}
-TableRoster::Item TableRoster::getItem(const Index& index) const {
+const TableRoster::Item& TableRoster::getItem(const Index& index) const {
return sections[index.section].items[index.row];
}
@@ -108,7 +108,7 @@ void TableRoster::handleUpdateTimerTick() {
foreach(RosterItem* groupChildItem, groupItem->getDisplayedChildren()) {
if (ContactRosterItem* contact = boost::polymorphic_downcast<ContactRosterItem*>(groupChildItem)) {
//std::cerr << " - " << contact->getDisplayJID() << std::endl;
- section.items.push_back(Item(contact->getDisplayName(), contact->getStatusText(), contact->getDisplayJID(), contact->getStatusShow()));
+ section.items.push_back(Item(contact->getDisplayName(), contact->getStatusText(), contact->getDisplayJID(), contact->getStatusShow(), contact->getAvatarPath()));
}
}
newSections.push_back(section);