This commit is contained in:
2025-07-04 02:53:27 +07:00
parent ba3f36db0c
commit 96954c6527

View File

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