diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-05-05 19:39:13 +0300 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-05-06 21:06:44 +0300 |
commit | 3a4a8398ab3da142638c6f40379b1a593e4209e4 (patch) | |
tree | a3bb5b89589059e01752df9ab75a8c7ddc773339 /src/corelib/kernel | |
parent | c4961c0fbef2d6e083ad2c497547b186ab1b76cc (diff) |
Add sdkVersion() to QNativeInterface::QAndroidApplication
The androidSdkVersion() is probably the most used call from
QtAndroidPrivate, so instead of waiting long time for a cross platform
api that could offer this functionality, it's better to have it now
under the NativeInterface.
Task-number: QTBUG-90497
Change-Id: I008d4c77d347d36e0a7e8ca4d6f33f993b02511b
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qcoreapplication_platform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcoreapplication_platform.h b/src/corelib/kernel/qcoreapplication_platform.h index 8dc1199135..15d9abc3fc 100644 --- a/src/corelib/kernel/qcoreapplication_platform.h +++ b/src/corelib/kernel/qcoreapplication_platform.h @@ -57,6 +57,7 @@ struct Q_CORE_EXPORT QAndroidApplication QT_DECLARE_NATIVE_INTERFACE(QAndroidApplication) static jobject context(); static bool isActivityContext(); + static int sdkVersion(); }; #endif } |