summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/androidjniinput.cpp
diff options
context:
space:
mode:
authorTinja Paavoseppä <[email protected]>2024-07-26 12:04:27 +0300
committerTinja Paavoseppä <[email protected]>2024-08-23 12:40:53 +0300
commit9ed29c73674939c772cc6b407881935e7fa19bcd (patch)
treee7964fe0320d0153f7d07021736c6200ee32fc40 /src/plugins/platforms/android/androidjniinput.cpp
parent9e167af3f6a4b2ac192aedd83f5066808d719415 (diff)
Android: Remove getQtLayout() method
After refactoring the various keyboard input related Java classes so that they are more contained inside their respective windows, this method becomes unnecessary. Task-number: QTBUG-126180 Pick-to: 6.8 Change-Id: I608399e98892752182039b8ece60005670da8224 Reviewed-by: Assam Boudjelthia <[email protected]>
Diffstat (limited to 'src/plugins/platforms/android/androidjniinput.cpp')
-rw-r--r--src/plugins/platforms/android/androidjniinput.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/plugins/platforms/android/androidjniinput.cpp b/src/plugins/platforms/android/androidjniinput.cpp
index 2d832a0209e..a0faedcc5b2 100644
--- a/src/plugins/platforms/android/androidjniinput.cpp
+++ b/src/plugins/platforms/android/androidjniinput.cpp
@@ -23,8 +23,6 @@ Q_LOGGING_CATEGORY(lcQpaInputMethods, "qt.qpa.input.methods");
using namespace QtAndroid;
-Q_DECLARE_JNI_CLASS(QtLayout, "org/qtproject/qt/android/QtLayout")
-Q_DECLARE_JNI_CLASS(QtLayoutInterface, "org/qtproject/qt/android/QtLayoutInterface")
Q_DECLARE_JNI_CLASS(QtInputInterface, "org/qtproject/qt/android/QtInputInterface")
namespace QtAndroidInput
@@ -38,12 +36,6 @@ namespace QtAndroidInput
static QPointer<QWindow> m_mouseGrabber;
- QJniObject qtLayout()
- {
- AndroidBackendRegister *reg = QtAndroid::backendRegister();
- return reg->callInterface<QtJniTypes::QtLayoutInterface, QtJniTypes::QtLayout>(
- "getQtLayout");
- }
void updateSelection(int selStart, int selEnd, int candidatesStart, int candidatesEnd)
{
@@ -58,7 +50,7 @@ namespace QtAndroidInput
AndroidBackendRegister *reg = QtAndroid::backendRegister();
reg->callInterface<QtJniTypes::QtInputInterface, void>(
"showSoftwareKeyboard", QtAndroidPrivate::activity(),
- qtLayout().object<QtJniTypes::QtLayout>(), left, top, width, height, inputHints,
+ left, top, width, height, inputHints,
enterKeyType);
qCDebug(lcQpaInputMethods) << "@@@ SHOWSOFTWAREKEYBOARD" << left << top << width << height << inputHints << enterKeyType;
}