mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
30 lines
510 B
C
30 lines
510 B
C
|
#ifndef CHATWIDGETHEADER_H
|
||
|
#define CHATWIDGETHEADER_H
|
||
|
|
||
|
#include "QWidget"
|
||
|
#include "QPaintEvent"
|
||
|
#include "QPoint"
|
||
|
#include "QMouseEvent"
|
||
|
|
||
|
class ChatWidget;
|
||
|
|
||
|
class ChatWidgetHeader : public QWidget
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
ChatWidgetHeader();
|
||
|
ChatWidget* getChatWidget();
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *);
|
||
|
void mousePressEvent(QMouseEvent *event);
|
||
|
void mouseMoveEvent(QMouseEvent *event);
|
||
|
|
||
|
private:
|
||
|
QPoint dragStart;
|
||
|
bool dragging = false;
|
||
|
};
|
||
|
|
||
|
#endif // CHATWIDGETHEADER_H
|