|
|
|
@ -360,7 +360,7 @@ void CallWindow::setPeerName(const QString& name) { |
|
|
|
|
|
|
|
|
|
|
|
void CallWindow::setBgpPath(const QString& path) { |
|
|
|
void CallWindow::setBgpPath(const QString& path) { |
|
|
|
m_bgpPathLabel->setText(path); |
|
|
|
m_bgpPathLabel->setText(path); |
|
|
|
m_bgpPathLabel->setVisible(!path.isEmpty() && m_settingsBtn->isChecked()); |
|
|
|
m_bgpPathLabel->setVisible(m_state == Active && !path.isEmpty()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CallWindow::setConnectionType(uint8_t type, quint64 nextHop) { |
|
|
|
void CallWindow::setConnectionType(uint8_t type, quint64 nextHop) { |
|
|
|
@ -438,8 +438,8 @@ void CallWindow::updateVideoPresentation() { |
|
|
|
} |
|
|
|
} |
|
|
|
bool active = m_state == Active, settings = active && m_settingsBtn->isChecked(); |
|
|
|
bool active = m_state == Active, settings = active && m_settingsBtn->isChecked(); |
|
|
|
m_localPreview->setVisible(active && !receiving && !m_localImage.isNull()); |
|
|
|
m_localPreview->setVisible(active && !receiving && !m_localImage.isNull()); |
|
|
|
m_connectionLabel->setVisible(settings); m_bgpPathLabel->setVisible(settings && !m_bgpPathLabel->text().isEmpty()); |
|
|
|
m_connectionLabel->setVisible(active); m_bgpPathLabel->setVisible(active && !m_bgpPathLabel->text().isEmpty()); |
|
|
|
m_statsLabel->setVisible(settings && !m_statsLabel->text().isEmpty()); |
|
|
|
m_statsLabel->setVisible(active && !m_statsLabel->text().isEmpty()); |
|
|
|
m_videoEnabled->setVisible(active); m_settingsBtn->setVisible(active); |
|
|
|
m_videoEnabled->setVisible(active); m_settingsBtn->setVisible(active); |
|
|
|
m_videoControls->setVisible(settings); m_showVideoBtn->setVisible(receiving); |
|
|
|
m_videoControls->setVisible(settings); m_showVideoBtn->setVisible(receiving); |
|
|
|
m_videoStatus->setVisible(active && !m_videoStatus->text().isEmpty()); |
|
|
|
m_videoStatus->setVisible(active && !m_videoStatus->text().isEmpty()); |
|
|
|
@ -511,5 +511,5 @@ void CallWindow::setAudioStats(int rtt, int buffer, int tempo, int dropped, int |
|
|
|
"ms\nBuffer drops: %7 · Underruns: %8") |
|
|
|
"ms\nBuffer drops: %7 · Underruns: %8") |
|
|
|
.arg(buffer).arg(reserve).arg(minimum).arg(maximum) |
|
|
|
.arg(buffer).arg(reserve).arg(minimum).arg(maximum) |
|
|
|
.arg(tempo / 100.0, 0, 'f', 2).arg(rtt).arg(dropped).arg(underruns)); |
|
|
|
.arg(tempo / 100.0, 0, 'f', 2).arg(rtt).arg(dropped).arg(underruns)); |
|
|
|
m_statsLabel->setVisible(m_state == Active && m_settingsBtn->isChecked()); |
|
|
|
m_statsLabel->setVisible(m_state == Active); |
|
|
|
} |
|
|
|
} |
|
|
|
|