| 163 | "AdvSceneSwitcher.websocketConnectionTab.protocol.header"); |
| 164 | |
| 165 | WSConnectionsTable::WSConnectionsTable(QTabWidget *parent) |
| 166 | : ResourceTable( |
| 167 | parent, |
| 168 | obs_module_text( |
| 169 | "AdvSceneSwitcher.websocketConnectionTab.help"), |
| 170 | obs_module_text( |
| 171 | "AdvSceneSwitcher.websocketConnectionTab.websocketConnectionAddButton.tooltip"), |
| 172 | obs_module_text( |
| 173 | "AdvSceneSwitcher.websocketConnectionTab.websocketConnectionRemoveButton.tooltip"), |
| 174 | headers, openSettingsDialog) |
| 175 | { |
| 176 | for (const auto &connection : GetConnections()) { |
| 177 | auto c = std::static_pointer_cast<WSConnection>(connection); |
| 178 | AddItemTableRow(Table(), getCellLabels(c.get())); |
| 179 | } |
| 180 | |
| 181 | SetHelpVisible(GetConnections().empty()); |
| 182 | } |
| 183 | |
| 184 | static void updateConnectionStatus(QTableWidget *table) |
| 185 | { |
nothing calls this directly
no test coverage detected