Skip to content

Commit

Permalink
fix: full clickable icon accepts mouse events
Browse files Browse the repository at this point in the history
  • Loading branch information
elfin-sbreuers committed Oct 11, 2022
1 parent 2648ec1 commit fee9736
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pipeline/view/clickableicon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ClickableIcon::ClickableIcon(
bool newGrayScale,
QGraphicsItem* parent)
: QObject(nullptr)
, QGraphicsPixmapItem(newIcon.pixmap(defaultSize), parent)
, QGraphicsItem(parent)
, icon(newIcon)
, grayScale(newGrayScale)
{
Expand Down
2 changes: 1 addition & 1 deletion src/pipeline/view/clickableicon.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Pipeline { namespace View {

class ClickableIcon : public QObject, public QGraphicsPixmapItem
class ClickableIcon : public QObject, public QGraphicsItem
{
Q_OBJECT
public:
Expand Down

0 comments on commit fee9736

Please sign in to comment.