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
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
using QLabel::QLabel;
|
|
|
|
signals:
|
2019-04-30 12:40:28 +02:00
|
|
|
void leftClick();
|
2021-03-07 21:12:50 +01:00
|
|
|
void rightClick();
|
2018-08-12 16:45:39 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void mousePressEvent(QMouseEvent *event);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLICKLABEL_H
|