Seitseman 2275fe4f1f fix(Stored): Make stores typed
Adding types instead of var for stores used in qml components

Closes: #14801
2024-08-27 10:52:18 +02:00

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)
}