]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/PrivacyWebEngineView.h
Add a background tab action to the context menu. https://redmine.stoutner.com/issues/949
[PrivacyBrowserPC.git] / src / widgets / PrivacyWebEngineView.h
index 863cf5d4429ce1bc9af8b14c9acbc4deb1445c1b..31319da98c3b8557f972735a0d6cd950b34da82e 100644 (file)
@@ -22,6 +22,7 @@
 
 // Qt toolkit headers.
 #include <QNetworkCookie>
+#include <QWebEngineFindTextResult>
 #include <QWebEngineView>
 
 class PrivacyWebEngineView : public QWebEngineView
@@ -36,6 +37,9 @@ public:
     // The public variables.
     std::list<QNetworkCookie> *cookieListPointer = new std::list<QNetworkCookie>;
     QString domainSettingsName = QStringLiteral("");
+    bool findCaseSensitive = false;
+    QString findString = QStringLiteral("");
+    QWebEngineFindTextResult findTextResult = QWebEngineFindTextResult();
     int loadProgressInt = -1;
     bool localStorageEnabled = false;
 
@@ -50,6 +54,7 @@ public Q_SLOTS:
 
 protected:
     // The protected functions.
+    void contextMenuEvent(QContextMenuEvent *contextMenuEvent) override;
     QWebEngineView* createWindow(QWebEnginePage::WebWindowType webWindowType) override;
 };
 #endif