2016-12-29 17:31:07 +01:00
|
|
|
#ifndef CHATWIDGET_H
|
|
|
|
#define CHATWIDGET_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
2017-01-01 02:30:42 +01:00
|
|
|
#include "QVBoxLayout"
|
2016-12-29 17:31:07 +01:00
|
|
|
#include "QFont"
|
2017-01-01 02:30:42 +01:00
|
|
|
#include "chatwidgetheader.h"
|
|
|
|
#include "chatwidgetview.h"
|
|
|
|
#include "chatwidgetinput.h"
|
|
|
|
|
2016-12-29 17:31:07 +01:00
|
|
|
class ChatWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
ChatWidget(QWidget *parent = 0);
|
2017-01-01 02:30:42 +01:00
|
|
|
~ChatWidget();
|
2016-12-29 17:31:07 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QFont font;
|
2017-01-01 02:30:42 +01:00
|
|
|
QVBoxLayout vbox;
|
|
|
|
ChatWidgetHeader header;
|
|
|
|
ChatWidgetView view;
|
|
|
|
ChatWidgetInput input;
|
2016-12-29 17:31:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CHATWIDGET_H
|