aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/rosterListView.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-09-13 10:48:14 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-09-13 10:48:14 +0200
commite63fabec07872984dec1ed8f2e9661447b686768 (patch)
tree2becad06f745a1f704f9606f2399cb500c638c32 /examples/GuiClient/rosterListView.cpp
parenta7337a5f8b5ccad1dd526fbb69b6564087f7bd7f (diff)
downloadqxmpp-e63fabec07872984dec1ed8f2e9661447b686768.tar.gz
fix compiler warnings
Diffstat (limited to 'examples/GuiClient/rosterListView.cpp')
-rw-r--r--examples/GuiClient/rosterListView.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/examples/GuiClient/rosterListView.cpp b/examples/GuiClient/rosterListView.cpp
index aa08f08b..828decce 100644
--- a/examples/GuiClient/rosterListView.cpp
+++ b/examples/GuiClient/rosterListView.cpp
@@ -28,10 +28,16 @@
#include <QMenu>
#include <QKeyEvent>
-rosterListView::rosterListView(QWidget* parent):QListView(parent), m_chat("Chat", this),
-m_profile("View Profile", this), m_removeContact("Remove", this)
+rosterListView::rosterListView(QWidget* parent)
+ : QListView(parent)
+ , m_chat("Chat", this)
+ , m_profile("View Profile", this)
+ , m_removeContact("Remove", this)
{
- bool check = connect(this, SIGNAL(pressed(QModelIndex)), this,
+ bool check;
+ Q_UNUSED(check);
+
+ check = connect(this, SIGNAL(pressed(QModelIndex)), this,
SLOT(mousePressed(QModelIndex)));
Q_ASSERT(check);
check = connect(this, SIGNAL(doubleClicked(QModelIndex)), this,
@@ -74,11 +80,13 @@ void rosterListView::mousePressed(const QModelIndex& index)
void rosterListView::doubleClicked(const QModelIndex& index)
{
+ Q_UNUSED(index);
m_chat.trigger();
}
void rosterListView::clicked(const QModelIndex& index)
{
+ Q_UNUSED(index);
}
QString rosterListView::selectedBareJid()