[Companion] Compilation fixes
This commit is contained in:
@@ -162,10 +162,13 @@ void MdiChild::onFirmwareChanged()
|
||||
|
||||
BoardEnum board = firmware->getBoard();
|
||||
ui->modelsList->header()->setVisible(!IS_HORUS(board));
|
||||
if (IS_HORUS(board))
|
||||
ui->modelsList->resetIndentation();
|
||||
else
|
||||
if (IS_HORUS(board)) {
|
||||
ui->modelsList->setIndentation(20);
|
||||
// ui->modelsList->resetIndentation(); // introduced in next Qt versions ...
|
||||
}
|
||||
else {
|
||||
ui->modelsList->setIndentation(0);
|
||||
}
|
||||
radioData.convert(previous, firmware);
|
||||
refresh();
|
||||
}
|
||||
|
||||
@@ -559,7 +559,7 @@ QString MultiModelPrinter::printTelemetry()
|
||||
columns.append("<table border='0' cellspacing='0' cellpadding='1' width='100%'>");
|
||||
for (int i=0; i<2; i++) {
|
||||
columns.append("<tr><td><b>" + QString(i==0 ? tr("RSSI Alarms") : "") + "</b></td><td>");
|
||||
if (IS_HORUS_OR_TARANIS(GetEepromInterface()->getBoard())) {
|
||||
if (IS_HORUS_OR_TARANIS(getCurrentBoard())) {
|
||||
COMPARE(i==0 ? tr("Low Alarm") : tr("Critical Alarm"));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user