|
|
|
@ -67,6 +67,7 @@ RadioPanel::RadioPanel(QWidget* parent) : QWidget(parent) { |
|
|
|
m_status = new QLabel(this); |
|
|
|
m_status = new QLabel(this); |
|
|
|
m_status->setObjectName(QStringLiteral("radioStatus")); |
|
|
|
m_status->setObjectName(QStringLiteral("radioStatus")); |
|
|
|
m_status->setMinimumWidth(0); |
|
|
|
m_status->setMinimumWidth(0); |
|
|
|
|
|
|
|
m_status->setWordWrap(true); |
|
|
|
m_status->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred); |
|
|
|
m_status->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Preferred); |
|
|
|
row->addWidget(m_status, 1); |
|
|
|
row->addWidget(m_status, 1); |
|
|
|
m_auto = new RadioAutoButton(this); |
|
|
|
m_auto = new RadioAutoButton(this); |
|
|
|
@ -220,7 +221,8 @@ void RadioPanel::updateState() { |
|
|
|
m_ptt->update(); |
|
|
|
m_ptt->update(); |
|
|
|
} |
|
|
|
} |
|
|
|
QString state; |
|
|
|
QString state; |
|
|
|
if (!engine->settingsError().isEmpty()) state = QCoreApplication::translate("ChatGui", "Settings error"); |
|
|
|
if (!engine->captureError().isEmpty()) state = engine->captureError(); |
|
|
|
|
|
|
|
else if (!engine->settingsError().isEmpty()) state = QCoreApplication::translate("ChatGui", "Settings error"); |
|
|
|
else if (engine->settingsBusy()) state = QCoreApplication::translate("ChatGui", "Applying settings…"); |
|
|
|
else if (engine->settingsBusy()) state = QCoreApplication::translate("ChatGui", "Applying settings…"); |
|
|
|
else if (!engine->captureAvailable()) state = QCoreApplication::translate("ChatGui", "Microphone unavailable"); |
|
|
|
else if (!engine->captureAvailable()) state = QCoreApplication::translate("ChatGui", "Microphone unavailable"); |
|
|
|
else if (engine->autoEnabled() && !engine->autoAvailable()) state = QCoreApplication::translate("ChatGui", "Automatic transmission unavailable"); |
|
|
|
else if (engine->autoEnabled() && !engine->autoAvailable()) state = QCoreApplication::translate("ChatGui", "Automatic transmission unavailable"); |
|
|
|
|