1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 17:42:10 +01:00
falkonOfficial/src/tools/clickablelabel.cpp

19 lines
384 B
C++
Raw Normal View History

2011-03-03 15:24:59 +01:00
#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());
}