summaryrefslogtreecommitdiffstats
path: root/app/Dialer.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/Dialer.qml')
-rw-r--r--app/Dialer.qml16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/Dialer.qml b/app/Dialer.qml
index f4a3272..afeea18 100644
--- a/app/Dialer.qml
+++ b/app/Dialer.qml
@@ -55,7 +55,6 @@ Item {
onCallStateChanged: {
if (telephony.callState == "incoming") {
rejectButton.active = true
- ringtone.active = true
callStateLabel.text = "Incoming call from " + telephony.callClip
} else if (telephony.callState == "dialing") {
callStateLabel.text = "Dialing " + telephony.callColp
@@ -67,25 +66,11 @@ Item {
rejectButton.active = false
callButton.checked = false
callTimer.stop()
- ringtone.active = false
callStateLabel.text = ""
}
}
}
- Loader {
- id: ringtone
- active: false
- sourceComponent: Component {
- SoundEffect {
- loops: SoundEffect.Infinite
- source: './Phone.wav'
- category: 'phone'
- Component.onCompleted: play()
- }
- }
- }
-
signal showContacts
function call(contact) {
name.text = contact.name
@@ -188,7 +173,6 @@ Item {
history.insert(0, contact)
if (telephony.callState == "incoming") {
telephony.answer()
- ringtone.active = false;
} else {
telephony.dial(number.text)
}