mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Disable QtFeedback
This commit is contained in:
parent
03e851e7b8
commit
f65a7a1025
1 changed files with 5 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue