Commit f25d3bd3 authored by Edric Milaret's avatar Edric Milaret Committed by Guillaume Roguez

display call state with toHumanStateName from LRC

instead of having a map of states in each client

Refs #74722

Change-Id: Ia43d2f77723cbfbe7a97a02c02bf16b95a53649b
parent 3aeae3ad
......@@ -224,7 +224,7 @@ CallWidget::callStateChanged(Call* call, Call::State previousState)
} else if (call->state() == Call::State::CURRENT) {
ui->videoWidget->show();
}
ui->callStateLabel->setText("Call State : " + state.at((int)call->state()));
ui->callStateLabel->setText("Call State : " + call->toHumanStateName());
}
void
......
......@@ -40,12 +40,6 @@ class CallWidget : public NavWidget
{
Q_OBJECT
const QVector<QString> state = {"New", "Incoming", "Ringing", "Current",
"Dialing", "Hold", "Failure", "Busy",
"Transferred", "Transfer hold", "Over",
"Error", "Conference",
"Conference Hold", "Initialization",
"Aborted", "Connected"};
public:
explicit CallWidget(QWidget *parent = 0);
~CallWidget();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment