aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/chatGraphicsView.h
blob: be7fa65308d9ae62a5426bf559b5924827e57231 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef CHATGRAPHICSVIEW_H
#define CHATGRAPHICSVIEW_H

#include <QGraphicsView>
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