diff options
-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)) { |