1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
falkonOfficial/src/navigation/goicon.cpp

18 lines
340 B
C++
Raw Normal View History

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