aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickswitch.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-25 15:14:27 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-28 09:29:39 +0000
commit2ed9dc9cbb6fbf3a68780b48a456ce3ef9bf82c0 (patch)
tree46621e3d80423c47f0b6d9b0f6d083824da95390 /src/templates/qquickswitch.cpp
parent147c215ec9174c394bcaa2c33760df735f4d1ebf (diff)
AbstractButton: remove the mouse params from signals
If we ever want to expose these, the name would be something else than "mouse"... :) Change-Id: Ie9dad16e84708059fd0b43d4764925db7b014d64 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickswitch.cpp')
-rw-r--r--src/templates/qquickswitch.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/templates/qquickswitch.cpp b/src/templates/qquickswitch.cpp
index 8544d7ca..f5c1a605 100644
--- a/src/templates/qquickswitch.cpp
+++ b/src/templates/qquickswitch.cpp
@@ -139,9 +139,8 @@ bool QQuickSwitchPrivate::handleMouseReleaseEvent(QQuickItem *child, QMouseEvent
child->setKeepMouseGrab(false);
event->accept();
} else {
- QQuickMouseEvent me(event->x(), event->y(), event->button(), event->buttons(), event->modifiers(), true /* isClick */);
- emit q->clicked(&me);
- event->setAccepted(me.isAccepted());
+ emit q->clicked();
+ event->accept();
q->toggle();
}
return true;