aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/handlers/qquickpointerdevicehandler.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2018-09-10 15:37:34 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-09-14 07:55:02 +0000
commit0a3eec60cab3c453b378ee45ac335e0dc2951f4b (patch)
tree652d937937390350f5be164ab5132261b3145f6b /src/quick/handlers/qquickpointerdevicehandler.cpp
parent983c036972248c1eb94a0df196951f15210cd71e (diff)
Doc: fix grabPermissions and other enumeration properties
* grabPermissions is a flags property, not bool. * Add a list of the possible grabPermissions values. * Fix two other places where \qmlproperty enum was used instead of enumeration. * acceptedButtons, acceptedDevices, acceptedModifiers and acceptedPointerTypes are flags properties, not plain int. Change-Id: I6f49dcc1e1762e913e4989b208380d64899630a6 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickpointerdevicehandler.cpp')
-rw-r--r--src/quick/handlers/qquickpointerdevicehandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/quick/handlers/qquickpointerdevicehandler.cpp b/src/quick/handlers/qquickpointerdevicehandler.cpp
index 24b3dc4733..096fad2071 100644
--- a/src/quick/handlers/qquickpointerdevicehandler.cpp
+++ b/src/quick/handlers/qquickpointerdevicehandler.cpp
@@ -80,7 +80,7 @@ QQuickPointerDevice::PointerTypes QQuickPointerDeviceHandler::acceptedPointerTyp
}
/*!
- \qmlproperty int QtQuick::PointerDeviceHandler::acceptedButtons
+ \qmlproperty flags QtQuick::PointerDeviceHandler::acceptedButtons
The mouse buttons which can activate this Pointer Handler.
@@ -131,7 +131,7 @@ Qt::KeyboardModifiers QQuickPointerDeviceHandler::acceptedModifiers() const
}
/*!
- \qmlproperty int PointerDeviceHandler::acceptedDevices
+ \qmlproperty flags PointerDeviceHandler::acceptedDevices
The types of pointing devices that can activate this Pointer Handler.
@@ -167,7 +167,7 @@ void QQuickPointerDeviceHandler::setAcceptedDevices(QQuickPointerDevice::DeviceT
}
/*!
- \qmlproperty int PointerDeviceHandler::acceptedPointerTypes
+ \qmlproperty flags PointerDeviceHandler::acceptedPointerTypes
The types of pointing instruments (finger, stylus, eraser, etc.)
that can activate this Pointer Handler.
@@ -206,7 +206,7 @@ void QQuickPointerDeviceHandler::setAcceptedPointerTypes(QQuickPointerDevice::Po
}
/*!
- \qmlproperty int PointerDeviceHandler::acceptedModifiers
+ \qmlproperty flags PointerDeviceHandler::acceptedModifiers
If this property is set, it will require the given keyboard modifiers to
be pressed in order to react to pointer events, and otherwise ignore them.