MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / updateConnectionStatus

Function updateConnectionStatus

plugins/mqtt/mqtt-tab.cpp:172–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static void updateConnectionStatus(QTableWidget *table)
173{
174 for (int row = 0; row < table->rowCount(); row++) {
175 auto item = table->item(row, 0);
176 if (!item) {
177 continue;
178 }
179
180 auto weakConnection =
181 GetWeakMqttConnectionByQString(item->text());
182 auto connection = weakConnection.lock();
183 if (!connection) {
184 continue;
185 }
186
187 UpdateItemTableRow(table, row,
188 getCellLabels(connection.get(), false));
189 }
190}
191
192static void setupTab(QTabWidget *tab)
193{

Callers 1

setupTabFunction · 0.70

Calls 5

UpdateItemTableRowFunction · 0.85
rowCountMethod · 0.80
getCellLabelsFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected