From 0efe79f80d6f249040f47162ebbfc82289ca073d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 7 Oct 2020 12:11:46 +0200 Subject: Rename the new platform APIs from QPlatformInterface to QNativeInterface We were already using the 'native' nomenclature when referring to these kinds of APIs, e.g. when talking about native handles, or the existing QPlatformNativeInterface on a QPA level. Using 'native' for the user facing APIs also distinguishes them from the 'platform' backend layer in QPA and elsewhere. Change-Id: I0f3273265904f0f19c0b6d62471f8820d3c3232e Reviewed-by: Friedemann Kleint Reviewed-by: Lars Knoll --- tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp | 4 ++-- tests/auto/gui/qopengl/tst_qopengl.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp index 0df949acba..790b53ff9f 100644 --- a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp +++ b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp @@ -446,8 +446,8 @@ void tst_QClipboard::clearBeforeSetText() # ifdef Q_OS_WIN -using QWindowsMime = QPlatformInterface::Private::QWindowsMime; -using QWindowsApplication = QPlatformInterface::Private::QWindowsApplication; +using QWindowsMime = QNativeInterface::Private::QWindowsMime; +using QWindowsApplication = QNativeInterface::Private::QWindowsApplication; class TestMime : public QWindowsMime { diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp index 5e244a4ae9..903b617ae8 100644 --- a/tests/auto/gui/qopengl/tst_qopengl.cpp +++ b/tests/auto/gui/qopengl/tst_qopengl.cpp @@ -1472,7 +1472,7 @@ void tst_QOpenGL::defaultSurfaceFormat() QCOMPARE(context->format(), fmt); } -using namespace QPlatformInterface; +using namespace QNativeInterface; #ifdef USE_GLX void tst_QOpenGL::glxContextWrap() @@ -1490,7 +1490,7 @@ void tst_QOpenGL::glxContextWrap() QOpenGLContext *ctx0 = new QOpenGLContext; ctx0->setFormat(window->format()); QVERIFY(ctx0->create()); - auto *glxContextIf = ctx0->platformInterface(); + auto *glxContextIf = ctx0->nativeInterface(); QVERIFY(glxContextIf); GLXContext context = glxContextIf->nativeContext(); QVERIFY(context); @@ -1524,7 +1524,7 @@ void tst_QOpenGL::wglContextWrap() window->show(); QVERIFY(QTest::qWaitForWindowExposed(window.data())); - auto *wglContext = ctx->platformInterface(); + auto *wglContext = ctx->nativeInterface(); QVERIFY(wglContext); QVERIFY(wglContext->nativeContext()); -- cgit v1.2.3