From da88f5f0bb5e73bc69bf7ed3962691622b1ae4f9 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Wed, 8 Sep 2010 09:23:18 +0000 Subject: add Gui Client example --- examples/GuiClient/customListView.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 examples/GuiClient/customListView.h (limited to 'examples/GuiClient/customListView.h') diff --git a/examples/GuiClient/customListView.h b/examples/GuiClient/customListView.h new file mode 100644 index 00000000..21898980 --- /dev/null +++ b/examples/GuiClient/customListView.h @@ -0,0 +1,34 @@ +#ifndef CUSTOMLISTVIEW_H +#define CUSTOMLISTVIEW_H + +#include +#include + +class customListView : public QListView +{ + Q_OBJECT + +public: + customListView(QWidget* parent = 0); + bool event(QEvent* e); + +public slots: + void mousePressed(const QModelIndex& index); + void doubleClicked(const QModelIndex& index); + void clicked(const QModelIndex& index); + +private slots: + void showChatDialog_helper(); + +protected: + void keyPressEvent(QKeyEvent*); + +signals: + void showChatDialog(const QString& bareJid); + +private: + QAction m_chat; + QAction m_profile; +}; + +#endif // CUSTOMLISTVIEW_H -- cgit v1.2.3