mirror of
https://invent.kde.org/network/falkon.git
synced 2024-09-23 02:32:10 +02:00
18 lines
340 B
C++
18 lines
340 B
C++
|
#include "goicon.h"
|
||
|
|
||
|
GoIcon::GoIcon(QWidget *parent)
|
||
|
: ClickableLabel(parent)
|
||
|
{
|
||
|
setObjectName("locationbar-goicon");
|
||
|
setCursor(Qt::PointingHandCursor);
|
||
|
setHidden(true);
|
||
|
}
|
||
|
|
||
|
void GoIcon::mousePressEvent(QMouseEvent *ev)
|
||
|
{
|
||
|
ClickableLabel::mousePressEvent(ev);
|
||
|
|
||
|
// Prevent propagating to LocationBar
|
||
|
ev->accept();
|
||
|
}
|