chatwidgetview refreshes on new message

This commit is contained in:
fourtf
2017-01-16 03:15:07 +01:00
parent d924f5bd8d
commit 1194905646
21 changed files with 321 additions and 196 deletions
+12 -6
View File
@@ -17,17 +17,23 @@ public:
ChatWidget(QWidget *parent = 0);
~ChatWidget();
ChatWidgetView &
view()
{
return m_view;
}
protected:
void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
private:
QFont font;
QVBoxLayout vbox;
ChatWidgetHeader header;
ChatWidgetView view;
ChatWidgetInput input;
QFont m_font;
QVBoxLayout m_vbox;
ChatWidgetHeader m_header;
ChatWidgetView m_view;
ChatWidgetInput m_input;
Channel *channel = NULL;
Channel *m_channel = NULL;
};
#endif // CHATWIDGET_H