diff options
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r-- | src/webengine/webview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp index f8be48e..59ad32a 100644 --- a/src/webengine/webview.cpp +++ b/src/webengine/webview.cpp @@ -23,6 +23,7 @@ #include <web/profilemanager.h> #include <web/webprofile.h> #include "browser.h" +#include "wallet/wallet.h" inline QAction *historyAction(QWebEngineView *view, const QWebEngineHistoryItem &item) { @@ -120,6 +121,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) QMenu *menu = new QMenu(this); const auto ctxdata = page()->contextMenuData(); + // back, forward, reload, mute buttons, added to all variants of the context menu { auto *navButtons = new QWidgetAction(this); @@ -288,6 +290,16 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) menu->addAction(zoomWidgetAction); } +#ifdef QT_DEBUG + { + menu->addSeparator(); + auto *autofillAction = menu->addAction(tr("Autofill form")); + connect(autofillAction, &QAction::triggered, this, [this]() { + Wallet::autocompleteForm(this); + }); + }; +#endif + menu->setMinimumWidth(250); menu->exec(event->globalPos()); } |