aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/GuiClient/customListView.cpp1
-rw-r--r--examples/GuiClient/mainDialog.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/GuiClient/customListView.cpp b/examples/GuiClient/customListView.cpp
index 37c6e056..8e64ea01 100644
--- a/examples/GuiClient/customListView.cpp
+++ b/examples/GuiClient/customListView.cpp
@@ -67,6 +67,7 @@ void customListView::mousePressed(const QModelIndex& index)
menu.addAction(&m_chat);
menu.setDefaultAction(&m_chat);
menu.addAction(&m_profile);
+ menu.addAction(&m_removeContact);
menu.exec(QCursor::pos());
}
}
diff --git a/examples/GuiClient/mainDialog.cpp b/examples/GuiClient/mainDialog.cpp
index d6c8e24b..ca3d0295 100644
--- a/examples/GuiClient/mainDialog.cpp
+++ b/examples/GuiClient/mainDialog.cpp
@@ -107,6 +107,10 @@ mainDialog::mainDialog(QWidget *parent): QDialog(parent, Qt::Window),
this, SLOT(showProfile(const QString&)));
Q_ASSERT(check);
+ check = connect(ui->listView, SIGNAL(removeContact(const QString&)),
+ this, SLOT(action_removeContact(const QString&)));
+ Q_ASSERT(check);
+
check = connect(&m_xmppClient, SIGNAL(messageReceived(const QXmppMessage&)),
SLOT(messageReceived(const QXmppMessage&)));
Q_ASSERT(check);