MCPcopy Create free account
hub / github.com/LeFroid/Viper-Browser / getContextMenuScript

Method getContextMenuScript

src/ui/web/WebView.cpp:186–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186QString WebView::getContextMenuScript(const QPoint &pos)
187{
188 QString scriptCopy = m_contextMenuHelper;
189 QPointF posF(pos);
190 return scriptCopy.arg(QString::number(posF.x() / zoomFactor())).arg(QString::number(posF.y() / zoomFactor()));
191}
192
193void WebView::showContextMenu(const QPoint &globalPos, const QPoint &relativePos)
194{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected