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