states {
State {
name: 'active'
+ PropertyChanges {target: callDurationInd; text: "00:00:00"}
PropertyChanges {target: answerButton; visible: false}
PropertyChanges {target: hangupButton; visible: true; width: parent.width}
PropertyChanges {target: stateInd; text: qsTr("Active")}
State {
name: 'dialing'
+ PropertyChanges {target: root; callDuration: "00:00:00"}
PropertyChanges {target: answerButton; visible: false}
PropertyChanges {target: hangupButton; visible: true; width: parent.width}
PropertyChanges {target: stateInd; text: qsTr("Dialing...")}
State {
name: 'incoming'
+ PropertyChanges {target: callDurationInd; text: "00:00:00"}
PropertyChanges {target: answerButton; visible: true}
PropertyChanges {target: hangupButton; visible: true; width: parent.width * 0.45}
PropertyChanges {target: stateInd; text: qsTr("Incoming...")}
}
State {
- name: 'disconnected'
+ name: 'disconnected'
+ PropertyChanges {target: callDurationInd; text: "00:00:00"}
PropertyChanges {target: answerButton; visible: false}
PropertyChanges {target: hangupButton; visible: false}
PropertyChanges {target: stateInd; text: qsTr("Disconnected")}
int QMLCallItem::duration() const
{
TRACE;
- return 32;
- if (d->proxy->callProxy())
- return d->proxy->callProxy()->duration();
- return 66;
+ if (d->proxy)
+ {
+ if (d->proxy->callProxy())
+ return d->proxy->callProxy()->duration();
+ }
+ return 0;
}
bool QMLCallItem::isMultiparty() const