diff options
author | Piotr Mikolajczyk <piotr.mikolajczyk@qt.io> | 2022-12-06 11:44:45 +0100 |
---|---|---|
committer | Piotr Mikolajczyk <piotr.mikolajczyk@qt.io> | 2022-12-09 16:16:48 +0100 |
commit | 4f0272befb23a68ea5d9de371a1522b0df9df24f (patch) | |
tree | a933b359ed150601b9d92921c68a0865ea405c64 /src/gui/platform/android | |
parent | d4eb5d11104bb823e56cf173e29f9d205320581f (diff) |
Add possibility to retrieve displayId for Android
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ø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/platform/android')
-rw-r--r-- | src/gui/platform/android/qandroidnativeinterface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/platform/android/qandroidnativeinterface.cpp b/src/gui/platform/android/qandroidnativeinterface.cpp index 3062b5255e..1bc718cbf1 100644 --- a/src/gui/platform/android/qandroidnativeinterface.cpp +++ b/src/gui/platform/android/qandroidnativeinterface.cpp @@ -7,6 +7,8 @@ #include <QtGui/qoffscreensurface_platform.h> #include <QtGui/private/qguiapplication_p.h> +#include <QtGui/qpa/qplatformscreen_p.h> + 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 |