Disable QtFeedback

This commit is contained in:
Devin Lin 2023-03-05 12:53:09 -08:00
parent 03e851e7b8
commit f65a7a1025

View file

@ -6,14 +6,15 @@ import QtQuick 2.15
import org.kde.plasma.private.mobileshell 1.0 as MobileShell import org.kde.plasma.private.mobileshell 1.0 as MobileShell
Loader { Loader {
source: "qrc:/org/kde/plasma/private/mobileshell/qml/components/HapticsEffectWrapper.qml" // source: "qrc:/org/kde/plasma/private/mobileshell/qml/components/HapticsEffectWrapper.qml"
property bool valid: item !== null property bool valid: item !== null
function buttonVibrate() { function buttonVibrate() {
if (valid && MobileShell.MobileShellSettings.vibrationsEnabled) { if (valid && MobileShell.MobileShellSettings.vibrationsEnabled) {
item.intensity = MobileShell.MobileShellSettings.vibrationIntensity; // TODO we need a haptics stack for Qt 6
item.duration = MobileShell.MobileShellSettings.vibrationDuration; // item.intensity = MobileShell.MobileShellSettings.vibrationIntensity;
item.start(); // item.duration = MobileShell.MobileShellSettings.vibrationDuration;
// item.start();
} }
} }
} }