kylin-connectivity/ui/filemanageview/clicklabel.cpp

17 lines
264 B
C++
Raw Normal View History

#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();
}
}