mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
24 lines
502 B
C++
24 lines
502 B
C++
#ifndef SIGNALLABEL_H
|
|
#define SIGNALLABEL_H
|
|
|
|
#include <QFlags>
|
|
#include <QLabel>
|
|
#include <QWidget>
|
|
|
|
class SignalLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SignalLabel(QWidget *parent = 0, Qt::WindowFlags f = 0)
|
|
: QLabel(parent, f) {}
|
|
virtual ~SignalLabel() = default;
|
|
signals:
|
|
void mouseDoubleClick(QMouseEvent *ev);
|
|
protected:
|
|
virtual void mouseDoubleClickEvent(QMouseEvent *ev) override {
|
|
emit this->mouseDoubleClick(ev);
|
|
}
|
|
};
|
|
|
|
#endif // SIGNALLABEL_H
|