mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 17:42:10 +01:00
19 lines
384 B
C++
19 lines
384 B
C++
|
#include "clickablelabel.h"
|
||
|
|
||
|
ClickableLabel::ClickableLabel(QWidget *parent) :
|
||
|
QLabel(parent)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void ClickableLabel::mousePressEvent(QMouseEvent *ev)
|
||
|
{
|
||
|
if (ev->button() == Qt::LeftButton)
|
||
|
emit clicked(ev->globalPos());
|
||
|
}
|
||
|
|
||
|
void ClickableLabel::mouseDoubleClickEvent(QMouseEvent *ev)
|
||
|
{
|
||
|
if (ev->button() == Qt::LeftButton)
|
||
|
emit clicked(ev->globalPos());
|
||
|
}
|