Skip to content
Snippets Groups Projects
Commit f25d3bd3 authored by Edric Milaret's avatar Edric Milaret Committed by Guillaume Roguez
Browse files

display call state with toHumanStateName from LRC

instead of having a map of states in each client

Refs #74722

Change-Id: Ia43d2f77723cbfbe7a97a02c02bf16b95a53649b
parent 3aeae3ad
No related branches found
No related tags found
No related merge requests found
...@@ -224,7 +224,7 @@ CallWidget::callStateChanged(Call* call, Call::State previousState) ...@@ -224,7 +224,7 @@ CallWidget::callStateChanged(Call* call, Call::State previousState)
} else if (call->state() == Call::State::CURRENT) { } else if (call->state() == Call::State::CURRENT) {
ui->videoWidget->show(); ui->videoWidget->show();
} }
ui->callStateLabel->setText("Call State : " + state.at((int)call->state())); ui->callStateLabel->setText("Call State : " + call->toHumanStateName());
} }
void void
......
...@@ -40,12 +40,6 @@ class CallWidget : public NavWidget ...@@ -40,12 +40,6 @@ class CallWidget : public NavWidget
{ {
Q_OBJECT 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: public:
explicit CallWidget(QWidget *parent = 0); explicit CallWidget(QWidget *parent = 0);
~CallWidget(); ~CallWidget();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment