diff --git a/widgets/icon.cpp b/widgets/icon.cpp index e915715de..f36b67b3b 100644 --- a/widgets/icon.cpp +++ b/widgets/icon.cpp @@ -922,7 +922,6 @@ void Icon::mousePressEvent(QGraphicsSceneMouseEvent *event) d->state = Private::PressedState; emit pressed(true); - emit pressed(true, event); event->accept(); update(); @@ -949,11 +948,9 @@ void Icon::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) if (was == Private::PressedState) { emit pressed(false); - emit pressed(false, event); if (inside) { emit clicked(); - emit clicked(event); } d->state = Private::NoState; } diff --git a/widgets/icon.h b/widgets/icon.h index 8f461abdb..7ccf34258 100644 --- a/widgets/icon.h +++ b/widgets/icon.h @@ -163,13 +163,11 @@ Q_SIGNALS: * Indicates when the icon has been pressed. */ void pressed(bool down); - void pressed(bool down, QGraphicsSceneMouseEvent *event); /** * Indicates when the icon has been clicked. */ void clicked(); - void clicked(QGraphicsSceneMouseEvent *event); protected: bool isDown();