summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qcheckbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/widgets/qcheckbox.cpp')
-rw-r--r--src/widgets/widgets/qcheckbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widgets/qcheckbox.cpp b/src/widgets/widgets/qcheckbox.cpp
index b06ae82249..2e9a404157 100644
--- a/src/widgets/widgets/qcheckbox.cpp
+++ b/src/widgets/widgets/qcheckbox.cpp
@@ -325,7 +325,7 @@ void QCheckBox::mouseMoveEvent(QMouseEvent *e)
if (testAttribute(Qt::WA_Hover)) {
bool hit = false;
if (underMouse())
- hit = hitButton(e->pos());
+ hit = hitButton(e->position().toPoint());
if (hit != d->hovering) {
update(rect());