summaryrefslogtreecommitdiffstats
path: root/tests/quicktestbrowser
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-11-26 17:19:31 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2015-12-01 22:05:00 +0000
commit0f64c6ae03a583e1fb060d87fc9b9dedf3b14dd6 (patch)
tree83bb7885a89ed3eca8d4e7e5bba0a2e44bad821e /tests/quicktestbrowser
parent6ef32812ccf6676e94e7d7fa7c3ae301d1069ca5 (diff)
Rename QWebEngineCookieStoreClient to QWebEngineCookieStore
Change-Id: I8f9a4c5c155a65ede24908799218fd867db0767c Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'tests/quicktestbrowser')
-rw-r--r--tests/quicktestbrowser/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/quicktestbrowser/main.cpp b/tests/quicktestbrowser/main.cpp
index 167f67dc3..12ebfa2d5 100644
--- a/tests/quicktestbrowser/main.cpp
+++ b/tests/quicktestbrowser/main.cpp
@@ -52,7 +52,7 @@ typedef QGuiApplication Application;
#include <QtQml/QQmlContext>
#include <QtQml/QQmlComponent>
#include <QtWebEngine/qtwebengineglobal.h>
-#include <QtWebEngineCore/qwebenginecookiestoreclient.h>
+#include <QtWebEngineCore/qwebenginecookiestore.h>
static QUrl startupUrl()
{
@@ -93,12 +93,12 @@ int main(int argc, char **argv)
, QUrl());
QObject *profile = component.create();
const QMetaObject *rootMeta = rootObject->metaObject();
- QWebEngineCookieStoreClient *client = 0;
- QMetaObject::invokeMethod(profile, "cookieStoreClient", Q_RETURN_ARG(QWebEngineCookieStoreClient*, client));
+ QWebEngineCookieStore *client = 0;
+ QMetaObject::invokeMethod(profile, "cookieStore", Q_RETURN_ARG(QWebEngineCookieStore*, client));
int index = rootMeta->indexOfProperty("thirdPartyCookiesEnabled");
Q_ASSERT(index != -1);
QMetaProperty thirdPartyCookiesProperty = rootMeta->property(index);
- client->setCookieFilter([rootObject,&thirdPartyCookiesProperty](const QWebEngineCookieStoreClient::FilterRequest&){ return thirdPartyCookiesProperty.read(rootObject).toBool(); });
+ client->setCookieFilter([rootObject,&thirdPartyCookiesProperty](const QWebEngineCookieStore::FilterRequest&){ return thirdPartyCookiesProperty.read(rootObject).toBool(); });
index = rootMeta->indexOfProperty("testProfile");
Q_ASSERT(index != -1);