mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-03 06:24:39 -04:00
Fix issue with 2D spectrum selection in translated UIs
For completeness this fixes the other occurrence of widget signals with text arguments that are liable to misbehaviour with translated UIs.
This commit is contained in:
+17
-11
@@ -315,23 +315,29 @@ void WideGraph::setModeTx(QString modeTx) //setModeTx
|
||||
ui->widePlot->update();
|
||||
}
|
||||
|
||||
//Current-Cumulative-Yellow
|
||||
void WideGraph::on_spec2dComboBox_currentIndexChanged(const QString &arg1)
|
||||
void WideGraph::on_spec2dComboBox_currentIndexChanged(int index)
|
||||
{
|
||||
ui->widePlot->setCurrent(false);
|
||||
ui->widePlot->setCumulative(false);
|
||||
ui->widePlot->setLinearAvg(false);
|
||||
ui->widePlot->setReference(false);
|
||||
ui->smoSpinBox->setEnabled(false);
|
||||
if(arg1=="Current") ui->widePlot->setCurrent(true);
|
||||
if(arg1=="Cumulative") ui->widePlot->setCumulative(true);
|
||||
if(arg1=="Linear Avg") {
|
||||
ui->widePlot->setLinearAvg(true);
|
||||
ui->smoSpinBox->setEnabled(true);
|
||||
}
|
||||
if(arg1=="Reference") {
|
||||
ui->widePlot->setReference(true);
|
||||
}
|
||||
switch (index)
|
||||
{
|
||||
case 0: // Current
|
||||
ui->widePlot->setCurrent(true);
|
||||
break;
|
||||
case 1: // Cumulative
|
||||
ui->widePlot->setCumulative(true);
|
||||
break;
|
||||
case 2: // Linear Avg
|
||||
ui->widePlot->setLinearAvg(true);
|
||||
ui->smoSpinBox->setEnabled(true);
|
||||
break;
|
||||
case 3: // Reference
|
||||
ui->widePlot->setReference(true);
|
||||
break;
|
||||
}
|
||||
replot();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user