equal
deleted
inserted
replaced
|
1 #ifndef _CHAT_WIDGET_INCLUDED |
|
2 #define _CHAT_WIDGET_INCLUDED |
|
3 |
|
4 #include <QWidget> |
|
5 #include <QString> |
|
6 #include <QGridLayout> |
|
7 |
|
8 class QListWidget; |
|
9 class QLineEdit; |
|
10 |
|
11 class HWChatWidget : public QWidget |
|
12 { |
|
13 Q_OBJECT |
|
14 |
|
15 public: |
|
16 HWChatWidget(QWidget* parent=0); |
|
17 |
|
18 public slots: |
|
19 void onChatStringFromNet(const QStringList& str); |
|
20 |
|
21 signals: |
|
22 void chatLine(const QString& str); |
|
23 |
|
24 private: |
|
25 QGridLayout mainLayout; |
|
26 QListWidget* chatText; |
|
27 QLineEdit* chatEditLine; |
|
28 |
|
29 private slots: |
|
30 void returnPressed(); |
|
31 }; |
|
32 |
|
33 #endif // _CHAT_WIDGET_INCLUDED |