X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Fwidgets%2FPrivacyWebEngineView.h;h=31319da98c3b8557f972735a0d6cd950b34da82e;hb=15219459baed09d03d17a12c72302595c135fd53;hp=3869fc34ac2d938f6b150b3bf3be5ff76462f351;hpb=0d23ee5e9b43b247cdda0a4cbb73f8b1a70f4500;p=PrivacyBrowserPC.git diff --git a/src/widgets/PrivacyWebEngineView.h b/src/widgets/PrivacyWebEngineView.h index 3869fc3..31319da 100644 --- a/src/widgets/PrivacyWebEngineView.h +++ b/src/widgets/PrivacyWebEngineView.h @@ -22,6 +22,7 @@ // Qt toolkit headers. #include +#include #include class PrivacyWebEngineView : public QWebEngineView @@ -36,6 +37,10 @@ public: // The public variables. std::list *cookieListPointer = new std::list; QString domainSettingsName = QStringLiteral(""); + bool findCaseSensitive = false; + QString findString = QStringLiteral(""); + QWebEngineFindTextResult findTextResult = QWebEngineFindTextResult(); + int loadProgressInt = -1; bool localStorageEnabled = false; signals: @@ -46,5 +51,10 @@ public Q_SLOTS: // The public slots. void addCookieToList(const QNetworkCookie &cookie) const; void removeCookieFromList(const QNetworkCookie &cookie) const; + +protected: + // The protected functions. + void contextMenuEvent(QContextMenuEvent *contextMenuEvent) override; + QWebEngineView* createWindow(QWebEnginePage::WebWindowType webWindowType) override; }; #endif