shift-shell/components/mobileshell/qml/components/HapticsEffect.qml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
489 B
QML
Raw Normal View History

// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
// SPDX-License-Identifier: GPL-2.0-or-later
import QtQuick 2.15
import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings
import org.kde.plasma.private.mobileshell.hapticsplugin as HapticsPlugin
QtObject {
function buttonVibrate() {
if (ShellSettings.Settings.vibrationsEnabled) {
HapticsPlugin.VibrationManager.vibrate(ShellSettings.Settings.vibrationDuration);
}
}
}