2018-08-12 16:45:39 +02:00
|
|
|
#ifndef CLICKLABEL_H
|
|
|
|
#define CLICKLABEL_H
|
|
|
|
#include <QLabel>
|
2021-03-07 21:12:50 +01:00
|
|
|
#include <QMenu>
|
2018-08-12 16:45:39 +02:00
|
|
|
|
|
|
|
class ClickLabel : public QLabel
|
|
|
|
{
|
2021-03-07 21:12:50 +01:00
|
|
|
Q_OBJECT
|
2018-08-12 16:45:39 +02:00
|
|
|
public:
|
2021-03-07 21:12:50 +01:00
|
|
|
using QLabel::QLabel;
|
2018-08-12 16:45:39 +02:00
|
|
|
signals:
|
2021-03-07 21:12:50 +01:00
|
|
|
void leftClick();
|
|
|
|
void rightClick();
|
2018-08-12 16:45:39 +02:00
|
|
|
protected:
|
2021-03-07 21:12:50 +01:00
|
|
|
void mousePressEvent(QMouseEvent *event);
|
2018-08-12 16:45:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLICKLABEL_H
|