20 rindas
290 B
C++
20 rindas
290 B
C++
#ifndef CLICKLABEL_H
|
|
#define CLICKLABEL_H
|
|
#include <QLabel>
|
|
#include <QMenu>
|
|
|
|
class ClickLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
using QLabel::QLabel;
|
|
signals:
|
|
void leftClick();
|
|
void rightClick();
|
|
|
|
protected:
|
|
void mousePressEvent(QMouseEvent *event);
|
|
};
|
|
|
|
#endif // CLICKLABEL_H
|