aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/customListView.h
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:23:18 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-08 09:23:18 +0000
commitda88f5f0bb5e73bc69bf7ed3962691622b1ae4f9 (patch)
treec3686f7649785a2bfcc2c637a1588acdb8a721e8 /examples/GuiClient/customListView.h
parent3431f5a37174b7eb8490672686db68df2b48e35f (diff)
downloadqxmpp-da88f5f0bb5e73bc69bf7ed3962691622b1ae4f9.tar.gz
add Gui Client example
Diffstat (limited to 'examples/GuiClient/customListView.h')
-rw-r--r--examples/GuiClient/customListView.h34
1 files changed, 34 insertions, 0 deletions
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 <QListView>
+#include <QAction>
+
+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