From 304ba155b69a4d8b1771f5e0ea65cc00cfa6f176 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 22 Jun 2022 10:48:59 -0400 Subject: [PATCH] components: Fix ExtendedAbstractButton pressAndHold --- .../qml/components/ExtendedAbstractButton.qml | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/components/mobileshell/qml/components/ExtendedAbstractButton.qml b/components/mobileshell/qml/components/ExtendedAbstractButton.qml index fb9a8c48..63097ab1 100644 --- a/components/mobileshell/qml/components/ExtendedAbstractButton.qml +++ b/components/mobileshell/qml/components/ExtendedAbstractButton.qml @@ -19,36 +19,10 @@ QQC2.AbstractButton { */ property alias cursorShape: mouseArea.cursorShape - /** - * This property holds the elapsed time in milliseconds before pressAndHold is emitted. - */ - property real pressAndHoldInterval: 1000 - - /** - * Signal that is emitted when the button has been held for a certain amount of time. - */ - signal pressAndHold() - /** * Signal that is emitted when the right click button is pressed. */ signal rightClickPressed() - - Timer { - id: timer - interval: pressAndHoldInterval - repeat: false - running: false - onTriggered: root.pressAndHold() - } - - onPressedChanged: { - if (pressed) { - timer.restart(); - } else { - timer.stop(); - } - } MouseArea { id: mouseArea