// Qt toolkit headers.
#include <QNetworkCookie>
+#include <QWebEngineFindTextResult>
#include <QWebEngineView>
class PrivacyWebEngineView : public QWebEngineView
// 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:
// 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