diff options
author | Vlad Voicu <vladvoic@gmail.com> | 2011-05-23 07:29:03 (GMT) |
---|---|---|
committer | Vlad Voicu <vladvoic@gmail.com> | 2011-05-31 18:34:02 (GMT) |
commit | 6db4218b22cb5c367751d2050e0c50f1559024a2 (patch) | |
tree | 1d3eca9dce2653b506f2a1a4c278196c0f987907 /Swift/QtUI/Roster | |
parent | 174421ab5664edc5242184bb84fcccf0a07914ea (diff) | |
download | swift-contrib-6db4218b22cb5c367751d2050e0c50f1559024a2.zip swift-contrib-6db4218b22cb5c367751d2050e0c50f1559024a2.tar.bz2 |
Added view history item in Roster
Diffstat (limited to 'Swift/QtUI/Roster')
-rw-r--r-- | Swift/QtUI/Roster/QtTreeWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/Roster/QtTreeWidget.cpp b/Swift/QtUI/Roster/QtTreeWidget.cpp index 1296872..dcf5bfc 100644 --- a/Swift/QtUI/Roster/QtTreeWidget.cpp +++ b/Swift/QtUI/Roster/QtTreeWidget.cpp @@ -143,6 +143,7 @@ void QtTreeWidget::contextMenuEvent(QContextMenuEvent* event) { if (ContactRosterItem* contact = dynamic_cast<ContactRosterItem*>(item)) { QAction* editContact = contextMenu.addAction(tr("Edit")); QAction* removeContact = contextMenu.addAction(tr("Remove")); + QAction* viewHistory = contextMenu.addAction(tr("View History")); QAction* result = contextMenu.exec(event->globalPos()); if (result == editContact) { eventStream_->send(boost::make_shared<RequestContactEditorUIEvent>(contact->getJID())); @@ -151,6 +152,9 @@ void QtTreeWidget::contextMenuEvent(QContextMenuEvent* event) { if (QtContactEditWindow::confirmContactDeletion(contact->getJID())) { eventStream_->send(boost::make_shared<RemoveRosterItemUIEvent>(contact->getJID())); } + } + else if (result == viewHistory) { + //TODO Handle history request } } else if (GroupRosterItem* group = dynamic_cast<GroupRosterItem*>(item)) { |