aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/pointer/multibuttons.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/pointer/multibuttons.qml')
-rw-r--r--tests/manual/pointer/multibuttons.qml13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/manual/pointer/multibuttons.qml b/tests/manual/pointer/multibuttons.qml
index 16d2f191e7..748ec87c86 100644
--- a/tests/manual/pointer/multibuttons.qml
+++ b/tests/manual/pointer/multibuttons.qml
@@ -55,20 +55,21 @@ Item {
id: balloonsButton
label: "Launch Balloons"
Layout.fillWidth: true
- gesturePolicy: TapHandler.DragThreshold
+ gesturePolicy: TapHandler.WithinBounds
}
Text { text: "the goons"; font.pointSize: 12 }
MultiButton {
id: missilesButton
- label: "Launch Missiles"
+ label: "Launch Missile"
Layout.fillWidth: true
- gesturePolicy: TapHandler.WithinBounds
+ gesturePolicy: TapHandler.ReleaseWithinBounds
+ onTapped: missileEmitter.burst(1)
}
MultiButton {
id: fightersButton
label: "Launch Fighters"
Layout.fillWidth: true
- gesturePolicy: TapHandler.ReleaseWithinBounds
+ gesturePolicy: TapHandler.DragThreshold
}
}
ParticleSystem {
@@ -90,6 +91,6 @@ Item {
anchors.right: parent.right
anchors.rightMargin: 100
ImageParticle { source: "resources/missile.png"; autoRotation: true; rotation: 90 }
- Emitter { anchors.bottom: parent.bottom; enabled: missilesButton.pressed; lifeSpan: 5000; size: 128
- emitRate: 10; velocity: PointDirection { x: -200; y: -350; yVariation: 200; xVariation: 100 } } }
+ Emitter { id: missileEmitter; anchors.bottom: parent.bottom; lifeSpan: 5000; size: 128;
+ emitRate: 0; velocity: PointDirection { x: -200; y: -350; yVariation: 200; xVariation: 100 } } }
}