mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03: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
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue