From 4f0272befb23a68ea5d9de371a1522b0df9df24f Mon Sep 17 00:00:00 2001 From: Piotr Mikolajczyk Date: Tue, 6 Dec 2022 11:44:45 +0100 Subject: Add possibility to retrieve displayId for Android MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When handling multiple screens in Android system it is needed to have the information about the display's Id. This patch provides this possibility. Task-number: QTBUG-105325 Change-Id: Id91aeaa59b17d5a098b672e220a5182b97320703 Reviewed-by: Tor Arne Vestbø --- src/gui/platform/android/qandroidnativeinterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/platform/android/qandroidnativeinterface.cpp') diff --git a/src/gui/platform/android/qandroidnativeinterface.cpp b/src/gui/platform/android/qandroidnativeinterface.cpp index 3062b5255e1..1bc718cbf18 100644 --- a/src/gui/platform/android/qandroidnativeinterface.cpp +++ b/src/gui/platform/android/qandroidnativeinterface.cpp @@ -7,6 +7,8 @@ #include #include +#include + QT_BEGIN_NAMESPACE using namespace QNativeInterface::Private; @@ -33,4 +35,6 @@ QOffscreenSurface *QNativeInterface::QAndroidOffscreenSurface::fromNative(ANati &QAndroidOffScreenIntegration::createOffscreenSurface>(nativeSurface); } +QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QAndroidScreen); + QT_END_NAMESPACE -- cgit v1.2.3