mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
35 lines
477 B
C++
35 lines
477 B
C++
#ifndef CHATVIEW_H
|
|
#define CHATVIEW_H
|
|
|
|
#include <QWidget>
|
|
#include "QPaintEvent"
|
|
#include "channel.h"
|
|
#include "scrollbar.h"
|
|
|
|
class ChatWidgetView : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ChatWidgetView();
|
|
|
|
Channel *
|
|
channel()
|
|
{
|
|
return m_channel;
|
|
}
|
|
|
|
bool layoutMessages();
|
|
|
|
protected:
|
|
void resizeEvent(QResizeEvent *);
|
|
|
|
private:
|
|
ScrollBar scrollbar;
|
|
Channel *m_channel;
|
|
|
|
void paintEvent(QPaintEvent *);
|
|
};
|
|
|
|
#endif // CHATVIEW_H
|