looqs/gui/clicklabel.h

18 lines
261 B
C
Raw Normal View History

#ifndef CLICKLABEL_H
#define CLICKLABEL_H
#include <QLabel>
class ClickLabel : public QLabel
{
Q_OBJECT
public:
using QLabel::QLabel;
signals:
void clicked();
protected:
void mousePressEvent(QMouseEvent *event);
};
#endif // CLICKLABEL_H