mirror-chatterino2/widgets/chatwidgetheaderbuttonlabel.h
2017-01-18 21:30:23 +01:00

28 lines
479 B
C++

#ifndef CHATWIDGETHEADERBUTTONLABEL_H
#define CHATWIDGETHEADERBUTTONLABEL_H
#include <QLabel>
#include <QMouseEvent>
namespace chatterino {
namespace widgets {
class ChatWidgetHeaderButtonLabel : public QLabel
{
Q_OBJECT
public:
ChatWidgetHeaderButtonLabel();
signals:
void mouseDown();
void mouseUp();
protected:
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
};
}
}
#endif // CHATWIDGETHEADERBUTTONLABEL_H