]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/PrivacyWebEngineView.h
Implement finding of text withing a page.
[PrivacyBrowserPC.git] / src / widgets / PrivacyWebEngineView.h
index 3869fc34ac2d938f6b150b3bf3be5ff76462f351..c227f428ee2bd1a0aab6a0b89a8708f2a6335519 100644 (file)
@@ -22,6 +22,7 @@
 
 // Qt toolkit headers.
 #include <QNetworkCookie>
+#include <QWebEngineFindTextResult>
 #include <QWebEngineView>
 
 class PrivacyWebEngineView : public QWebEngineView
@@ -36,6 +37,10 @@ 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;
 
 signals:
@@ -46,5 +51,9 @@ public Q_SLOTS:
     // The public slots.
     void addCookieToList(const QNetworkCookie &cookie) const;
     void removeCookieFromList(const QNetworkCookie &cookie) const;
+
+protected:
+    // The protected functions.
+    QWebEngineView* createWindow(QWebEnginePage::WebWindowType webWindowType) override;
 };
 #endif