mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 05:52:41 +00:00
2275fe4f1f
Adding types instead of var for stores used in qml components Closes: #14801
18 lines
503 B
QML
18 lines
503 B
QML
import QtQuick 2.14
|
|
import QtMultimedia 5.14 as T
|
|
|
|
import AppLayouts.stores 1.0
|
|
|
|
T.Audio {
|
|
id: audio
|
|
|
|
property RootStore store
|
|
|
|
audioRole: Audio.NotificationRole
|
|
volume: T.QtMultimedia.convertVolume(store.volume,
|
|
T.QtMultimedia.LogarithmicVolumeScale,
|
|
T.QtMultimedia.LinearVolumeScale)
|
|
muted: !store.notificationSoundsEnabled
|
|
onError: console.warn("Audio error:", errorString, "; code:", error)
|
|
}
|