From 6abd36d62804e160f740a795fcf1764b37da4525 Mon Sep 17 00:00:00 2001 From: Max Paperno Date: Sat, 29 Apr 2017 20:48:22 -0400 Subject: [PATCH] [Simulator] Revert logic switch names in Radio Outputs view to numbers-only (since @72b1ad0, closes #4877). --- companion/src/simulation/radiooutputswidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/simulation/radiooutputswidget.cpp b/companion/src/simulation/radiooutputswidget.cpp index 775a517e6..d51eba7fc 100644 --- a/companion/src/simulation/radiooutputswidget.cpp +++ b/companion/src/simulation/radiooutputswidget.cpp @@ -267,7 +267,7 @@ QWidget * RadioOutputsWidget::createLogicalSwitch(QWidget * parent, int switchNo swtch->setMinimumWidth(swtch->fontMetrics().width("99") + 10); font.setBold(false); swtch->setFont(font); - swtch->setText(QString("%1").arg(RawSwitch(SWITCH_TYPE_VIRTUAL, switchNo+1).toString().remove("L"), 2, QLatin1Char('0'))); + swtch->setText(QString("%1").arg(switchNo+1, 2, 10, QChar('0'))); swtch->setAlignment(Qt::AlignCenter); m_logicSwitchMap.insert(switchNo, swtch); return swtch;