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