Added resources
This commit is contained in:
parent
e076f9aeae
commit
882ed92bc7
|
@ -40,3 +40,6 @@ DISTFILES += \
|
|||
HEADERS += \
|
||||
src/boxingtimer.h \
|
||||
src/boxingsettings.h
|
||||
|
||||
RESOURCES += \
|
||||
harbour-boxing-timer.qrc
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<RCC>
|
||||
<qresource prefix="/audio">
|
||||
<file>resources/bell.wav</file>
|
||||
</qresource>
|
||||
</RCC>
|
|
@ -30,12 +30,19 @@
|
|||
|
||||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
import QtMultimedia 5.0
|
||||
import Pw.Unitoo.Backend 1.0
|
||||
import "pages"
|
||||
|
||||
ApplicationWindow {
|
||||
BoxingTimer {
|
||||
id: boxingTimer
|
||||
|
||||
onStatusChanged: {
|
||||
if (status === BoxingTimer.Start) {
|
||||
bell.play()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BoxingSettings {
|
||||
|
@ -47,6 +54,12 @@ ApplicationWindow {
|
|||
}
|
||||
}
|
||||
|
||||
SoundEffect {
|
||||
id: bell
|
||||
|
||||
source: "qrc:/audio/resources/bell.wav"
|
||||
}
|
||||
|
||||
initialPage: firstPage
|
||||
cover: Qt.resolvedUrl("cover/CoverPage.qml")
|
||||
allowedOrientations: Orientation.Portrait
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue