MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / showPluginHtmlDialog

Method showPluginHtmlDialog

src/jsplugin/JSPluginManager.cpp:175–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void 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
199void JSPluginManager::showPluginSelectorWindow(JSPluginModule *moduleData, const QPoint &pt)
200{

Callers

nothing calls this directly

Calls 6

endMethod · 0.80
emitShowEventMethod · 0.80
dialogSizeMethod · 0.80
guidMethod · 0.45
specMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected