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
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
function buttonVibrate() {
if (valid && MobileShell.MobileShellSettings.vibrationsEnabled) {
item.intensity = MobileShell.MobileShellSettings.vibrationIntensity;
item.duration = MobileShell.MobileShellSettings.vibrationDuration;
item.start();
// TODO we need a haptics stack for Qt 6
// item.intensity = MobileShell.MobileShellSettings.vibrationIntensity;
// item.duration = MobileShell.MobileShellSettings.vibrationDuration;
// item.start();
}
}
}