From 034ec9066236c2fbd00df3ef0ba2704d51d853aa Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Mon, 24 Oct 2022 00:09:18 +0100 Subject: [PATCH] Stop it cutting off some devices --- wfmain.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wfmain.cpp b/wfmain.cpp index a729e27..e49497b 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -6544,11 +6544,10 @@ void wfmain::setAudioDevicesUI() } // Make the audio comboboxes expand when clicked (only needed for Windows) - qInfo() << "**** INPUT WIDTH" << numCharsIn << "OUTPUT WIDTH" << numCharsOut; - ui->audioInputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsIn+4)); - ui->audioOutputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsOut+4)); - ui->serverTXAudioOutputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsOut+4)); - ui->serverRXAudioInputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsIn+4)); + ui->audioInputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsIn+30)); + ui->audioOutputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsOut+30)); + ui->serverTXAudioOutputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsOut+30)); + ui->serverRXAudioInputCombo->setStyleSheet(QString("QComboBox QAbstractItemView {min-width: %1px;}").arg(numCharsIn+30)); // Stop blocking signals so we can set the current values