diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-07-26 12:39:50 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-07-26 12:39:50 (GMT) |
commit | a28d92f3458218d6effbfdd9a42bf8fbe8b8aa72 (patch) | |
tree | f666c221dcc899704bb80f67afe383e58b780669 /Swiften/Roster | |
parent | c4660f404c9a0dbf1c00a20baacfc738d93eaff5 (diff) | |
download | swift-a28d92f3458218d6effbfdd9a42bf8fbe8b8aa72.zip swift-a28d92f3458218d6effbfdd9a42bf8fbe8b8aa72.tar.bz2 |
Begin to assage Swift model into Qt Model/View.
Diffstat (limited to 'Swiften/Roster')
-rw-r--r-- | Swiften/Roster/Roster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Roster/Roster.cpp b/Swiften/Roster/Roster.cpp index 61c0286..b51d8eb 100644 --- a/Swiften/Roster/Roster.cpp +++ b/Swiften/Roster/Roster.cpp @@ -39,7 +39,7 @@ GroupRosterItem* Roster::getGroup(const String& groupName) { } GroupRosterItem* group = new GroupRosterItem(groupName, treeWidget_, widgetFactory_); children_.push_back(group); - items_.push_back(group); + items_.push_back(group); return group; } @@ -49,7 +49,7 @@ void Roster::handleUserAction(boost::shared_ptr<UserRosterAction> action) { void Roster::addContact(const JID& jid, const String& name, const String& group) { ContactRosterItem *item = new ContactRosterItem(jid, name, getGroup(group), widgetFactory_); - items_.push_back(item); + items_.push_back(item); item->onUserAction.connect(boost::bind(&Roster::handleUserAction, this, _1)); filterItem(item); |