mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
WebPage: Remove no longer needed copies of runJavaScript functions
This commit is contained in:
parent
8fa9db9f65
commit
6b39dc9cf0
|
@ -145,26 +145,6 @@ QVariant WebPage::execJavaScript(const QString &scriptSource, quint32 worldId, i
|
|||
return result;
|
||||
}
|
||||
|
||||
void WebPage::runJavaScript(const QString &scriptSource)
|
||||
{
|
||||
return QWebEnginePage::runJavaScript(scriptSource);
|
||||
}
|
||||
|
||||
void WebPage::runJavaScript(const QString &scriptSource, const QWebEngineCallback<const QVariant &> &resultCallback)
|
||||
{
|
||||
return QWebEnginePage::runJavaScript(scriptSource, resultCallback);
|
||||
}
|
||||
|
||||
void WebPage::runJavaScript(const QString &scriptSource, quint32 worldId)
|
||||
{
|
||||
QWebEnginePage::runJavaScript(scriptSource, worldId);
|
||||
}
|
||||
|
||||
void WebPage::runJavaScript(const QString &scriptSource, quint32 worldId, const QWebEngineCallback<const QVariant &> &resultCallback)
|
||||
{
|
||||
QWebEnginePage::runJavaScript(scriptSource, worldId, resultCallback);
|
||||
}
|
||||
|
||||
QPointF WebPage::mapToViewport(const QPointF &pos) const
|
||||
{
|
||||
return QPointF(pos.x() / zoomFactor(), pos.y() / zoomFactor());
|
||||
|
|
|
@ -50,12 +50,6 @@ public:
|
|||
bool execPrintPage(QPrinter *printer, int timeout = 1000);
|
||||
QVariant execJavaScript(const QString &scriptSource, quint32 worldId = QWebEngineScript::MainWorld, int timeout = 500);
|
||||
|
||||
// TODO: Remove when depending on Qt 5.7
|
||||
void runJavaScript(const QString &scriptSource);
|
||||
void runJavaScript(const QString &scriptSource, const QWebEngineCallback<const QVariant &> &resultCallback);
|
||||
void runJavaScript(const QString &scriptSource, quint32 worldId);
|
||||
void runJavaScript(const QString &scriptSource, quint32 worldId, const QWebEngineCallback<const QVariant &> &resultCallback);
|
||||
|
||||
QPointF mapToViewport(const QPointF &pos) const;
|
||||
WebHitTestResult hitTestContent(const QPoint &pos) const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user