summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-09-22 12:07:36 -0400
committertrilene <trilene@runbox.com>2020-09-22 12:07:36 -0400
commitda27670cbe474cf7e4f487b11d58c63e7cefb976 (patch)
treed4b80df8c1214a21b1d8be5e36e8d5d6e656c80d /src/TextInputWidget.cpp
parentTranslated using Weblate (Estonian) (diff)
downloadnheko-da27670cbe474cf7e4f487b11d58c63e7cefb976.tar.xz
Port ActiveCallBar to Qml
Diffstat (limited to 'src/TextInputWidget.cpp')
-rw-r--r--src/TextInputWidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp

index 4a25c4cf..a7d9797e 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp
@@ -560,7 +560,7 @@ TextInputWidget::TextInputWidget(QWidget *parent) #ifdef GSTREAMER_AVAILABLE callBtn_ = new FlatButton(this); - changeCallButtonState(WebRTCSession::State::DISCONNECTED); + changeCallButtonState(webrtc::State::DISCONNECTED); connect(&WebRTCSession::instance(), &WebRTCSession::stateChanged, this, @@ -776,11 +776,11 @@ TextInputWidget::paintEvent(QPaintEvent *) } void -TextInputWidget::changeCallButtonState(WebRTCSession::State state) +TextInputWidget::changeCallButtonState(webrtc::State state) { QIcon icon; - if (state == WebRTCSession::State::ICEFAILED || - state == WebRTCSession::State::DISCONNECTED) { + if (state == webrtc::State::ICEFAILED || + state == webrtc::State::DISCONNECTED) { callBtn_->setToolTip(tr("Place a call")); icon.addFile(":/icons/icons/ui/place-call.png"); } else {