summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladvoic@gmail.com>2011-05-23 07:29:03 (GMT)
committerVlad Voicu <vladvoic@gmail.com>2011-05-23 20:01:27 (GMT)
commitaabbaf8495e105951a1a1c7f7f487fb8d03d2627 (patch)
tree1d3eca9dce2653b506f2a1a4c278196c0f987907 /Swift/QtUI
parent4e05484ab2475cd50572a81e831235f916e8b7ba (diff)
downloadswift-contrib-aabbaf8495e105951a1a1c7f7f487fb8d03d2627.zip
swift-contrib-aabbaf8495e105951a1a1c7f7f487fb8d03d2627.tar.bz2
Added view history item in Roster
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/Roster/QtTreeWidget.cpp4
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)) {