...
This commit is contained in:
@@ -100,7 +100,6 @@ void Mainwindows::loadConfiguration() {
|
|||||||
if(label.isEmpty()) {
|
if(label.isEmpty()) {
|
||||||
label = QString("Button %1").arg(i);
|
label = QString("Button %1").arg(i);
|
||||||
}
|
}
|
||||||
qDebug() << "Loading button label:" << labelKey << "=" << label;
|
|
||||||
m_buttonLabels.append(label);
|
m_buttonLabels.append(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,14 +110,9 @@ void Mainwindows::loadConfiguration() {
|
|||||||
if(label.isEmpty()) {
|
if(label.isEmpty()) {
|
||||||
label = QString("Indicator %1").arg(i);
|
label = QString("Indicator %1").arg(i);
|
||||||
}
|
}
|
||||||
qDebug() << "Loading indicator label:" << labelKey << "=" << label;
|
|
||||||
m_indicatorLabels.append(label);
|
m_indicatorLabels.append(label);
|
||||||
}
|
}
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
qDebug() << "Loaded" << m_buttonCount << "buttons and" << m_indicatorCount << "indicators";
|
|
||||||
qDebug() << "Button registers:" << m_buttonRegisters;
|
|
||||||
qDebug() << "Indicator registers:" << m_indicatorRegisters;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mainwindows::initModbusConnection() {
|
void Mainwindows::initModbusConnection() {
|
||||||
@@ -308,7 +302,7 @@ void Mainwindows::createUIElements() {
|
|||||||
m_table->setCellWidget(i, 2, square);
|
m_table->setCellWidget(i, 2, square);
|
||||||
|
|
||||||
// Add status text cell
|
// Add status text cell
|
||||||
auto* statusItem = new QTableWidgetItem("?");
|
const auto statusItem = new QTableWidgetItem("?");
|
||||||
statusItem->setTextAlignment(Qt::AlignCenter);
|
statusItem->setTextAlignment(Qt::AlignCenter);
|
||||||
m_table->setItem(i, 3, statusItem);
|
m_table->setItem(i, 3, statusItem);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user