| 173 | } |
| 174 | |
| 175 | void JSPluginManager::showPluginHtmlDialog(JSPluginModule *moduleData) |
| 176 | { |
| 177 | QString guid = moduleData->spec()->guid(); |
| 178 | JSPluginHtmlDialog* dialog; |
| 179 | auto it = m_pluginHtmlDialogCollection.find(guid); |
| 180 | if ( it == m_pluginHtmlDialogCollection.end()) { |
| 181 | dialog = initPluginHtmlDialog(moduleData); |
| 182 | } else { |
| 183 | dialog = it.value(); |
| 184 | } |
| 185 | // |
| 186 | moduleData->emitShowEvent(); |
| 187 | dialog->setGeometry( |
| 188 | QStyle::alignedRect( |
| 189 | Qt::LeftToRight, |
| 190 | Qt::AlignCenter, |
| 191 | dialog->dialogSize(), |
| 192 | qApp->desktop()->availableGeometry() |
| 193 | ) |
| 194 | ); |
| 195 | dialog->show(); |
| 196 | dialog->raise(); |
| 197 | } |
| 198 | |
| 199 | void JSPluginManager::showPluginSelectorWindow(JSPluginModule *moduleData, const QPoint &pt) |
| 200 | { |
nothing calls this directly
no test coverage detected