| 206 | } |
| 207 | |
| 208 | void JSPluginManager::showPluginMainTabView(JSPluginModule *moduleData) |
| 209 | { |
| 210 | QString guid = moduleData->spec()->guid(); |
| 211 | QPointer<WizWebsiteView> mainTabView; |
| 212 | WizMainTabBrowser *tabBrowser = m_mainWindow->mainTabView(); |
| 213 | auto it = m_pluginMainTabViewCollection.find(guid); |
| 214 | if ( it == m_pluginMainTabViewCollection.end() || it.value().isNull() ) { |
| 215 | // create one |
| 216 | mainTabView = initPluginMainTabView(moduleData); |
| 217 | tabBrowser->createTab(mainTabView); |
| 218 | } else { |
| 219 | mainTabView = it.value(); |
| 220 | if (!mainTabView.isNull()) |
| 221 | tabBrowser->setCurrentWidget(mainTabView); |
| 222 | } |
| 223 | // |
| 224 | moduleData->emitShowEvent(); |
| 225 | } |
| 226 | |
| 227 | void JSPluginManager::handlePluginActionTriggered() |
| 228 | { |
nothing calls this directly
no test coverage detected