17 lines
264 B
C++
17 lines
264 B
C++
|
#include "clicklabel.h"
|
||
|
|
||
|
#include <QDebug>
|
||
|
|
||
|
ClickLabel::ClickLabel(QWidget *parent) : QLabel(parent)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void ClickLabel::mouseReleaseEvent(QMouseEvent *event)
|
||
|
{
|
||
|
if (event != nullptr && event->button() == Qt::LeftButton) {
|
||
|
Q_EMIT clicked();
|
||
|
}
|
||
|
}
|
||
|
|