summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/certificateerror/testhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quick/certificateerror/testhandler.h')
-rw-r--r--tests/auto/quick/certificateerror/testhandler.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/auto/quick/certificateerror/testhandler.h b/tests/auto/quick/certificateerror/testhandler.h
index d954ed5fc..a6d95d9a9 100644
--- a/tests/auto/quick/certificateerror/testhandler.h
+++ b/tests/auto/quick/certificateerror/testhandler.h
@@ -29,19 +29,19 @@
#ifndef TESTHANDLER_H
#define TESTHANDLER_H
-#include <QtWebEngine/private/qquickwebenginecertificateerror_p.h>
+#include <QWebEngineCertificateError>
class TestHandler : public QObject
{
Q_OBJECT
- Q_PROPERTY(QQuickWebEngineCertificateError *certificateError READ certificateError WRITE
+ Q_PROPERTY(QWebEngineCertificateError certificateError READ certificateError WRITE
setCertificateError NOTIFY certificateErrorChanged)
Q_PROPERTY(bool loadSuccess READ loadSuccess WRITE setLoadSuccess NOTIFY loadSuccessChanged)
public:
explicit TestHandler(QObject *parent = nullptr);
- QQuickWebEngineCertificateError *certificateError() const;
+ QWebEngineCertificateError certificateError() const;
- void setCertificateError(QQuickWebEngineCertificateError *error);
+ void setCertificateError(QWebEngineCertificateError error);
void setLoadSuccess(bool success);
bool loadSuccess() const;
void load(const QUrl &page);
@@ -49,9 +49,10 @@ public:
signals:
void loadPage(const QUrl &page);
void certificateErrorChanged();
+ void loadSuccessChanged();
private:
- QQuickWebEngineCertificateError *m_error = nullptr;
+ QWebEngineCertificateError *m_error = nullptr;
bool m_loadSuccess = false;
};