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/chatGraphicsView.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/GuiClient/chatGraphicsView.h (limited to 'examples/GuiClient/chatGraphicsView.h') diff --git a/examples/GuiClient/chatGraphicsView.h b/examples/GuiClient/chatGraphicsView.h new file mode 100644 index 00000000..be7fa653 --- /dev/null +++ b/examples/GuiClient/chatGraphicsView.h @@ -0,0 +1,20 @@ +#ifndef CHATGRAPHICSVIEW_H +#define CHATGRAPHICSVIEW_H + +#include +class chatGraphicsScene; + +class chatGraphicsView : public QGraphicsView +{ +public: + chatGraphicsView(QWidget* parent = 0); + void setChatGraphicsScene(chatGraphicsScene* scene); + void addMessage(const QString& user, const QString& message); + +private: + void resizeEvent(QResizeEvent *event); + + chatGraphicsScene* m_scene; +}; + +#endif // CHATGRAPHICSVIEW_H -- cgit v1.2.3