| 156 | ClientToolManager *ClientToolManager::s_instance = nullptr; |
| 157 | |
| 158 | ClientToolManager::ClientToolManager(QObject *parent) |
| 159 | : QObject(parent) |
| 160 | , m_parentWidget(nullptr) |
| 161 | , m_model(nullptr) |
| 162 | , m_selectionModel(nullptr) |
| 163 | { |
| 164 | Q_ASSERT(!s_instance); |
| 165 | s_instance = this; |
| 166 | |
| 167 | initPluginRepository(); |
| 168 | |
| 169 | connect(Endpoint::instance(), &Endpoint::disconnected, this, &ClientToolManager::clear); |
| 170 | connect(Endpoint::instance(), &Endpoint::connectionEstablished, this, &ClientToolManager::requestAvailableTools); |
| 171 | } |
| 172 | |
| 173 | ClientToolManager::~ClientToolManager() |
| 174 | { |
nothing calls this directly
no test coverage detected