diff options
author | Petri Virkkunen <[email protected]> | 2024-09-04 09:56:50 +0300 |
---|---|---|
committer | Petri Virkkunen <[email protected]> | 2024-09-06 09:49:59 +0300 |
commit | 746b4d1086c27b70d153de80420f20bb9fab8f30 (patch) | |
tree | aef5725e19e694933da6b6ab6bdab4aa2913b863 | |
parent | 1f9d7d2daa6541aab2e830e16523253232625145 (diff) |
Android: Update QML in Android service manual test to use new API
QtQuickViewComponent was renamed to QtQuickViewContent, along with that
loadComponent was renamed to loadContent.
Pick-to: 6.8
Fixes: QTBUG-128611
Change-Id: I9ca5d58edf5d1d14ea2d014fd94d01e5e07ca106
Reviewed-by: Assam Boudjelthia <[email protected]>
-rw-r--r-- | tests/manual/platforms/android/qtquickview_java/app/src/main/java/com/example/qtquickview_java/QmlService.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/manual/platforms/android/qtquickview_java/app/src/main/java/com/example/qtquickview_java/QmlService.java b/tests/manual/platforms/android/qtquickview_java/app/src/main/java/com/example/qtquickview_java/QmlService.java index 59d90eb023..8a3a34e3b7 100644 --- a/tests/manual/platforms/android/qtquickview_java/app/src/main/java/com/example/qtquickview_java/QmlService.java +++ b/tests/manual/platforms/android/qtquickview_java/app/src/main/java/com/example/qtquickview_java/QmlService.java @@ -34,7 +34,7 @@ public class QmlService extends Service implements QtQmlStatusChangeListener private static final String TAG = "QmlService"; private WindowManager m_windowManager; private QtQuickView m_serviceView; - private final Main m_serviceViewComponent = new Main(); + private final Main m_serviceViewContent = new Main(); private View m_mainView; private TextView m_qmlBackgroundColorTextView; @@ -57,8 +57,8 @@ public class QmlService extends Service implements QtQmlStatusChangeListener getScreenSize((size) -> { // Get the available geometry, and split it between the Android and QML UIs m_serviceView = addQuickView(new Size(size.getWidth() / 2, size.getHeight())); - m_serviceViewComponent.setStatusChangeListener(this); - m_serviceView.loadComponent(m_serviceViewComponent); + m_serviceViewContent.setStatusChangeListener(this); + m_serviceView.loadContent(m_serviceViewContent); m_mainView = addMainView(new Size(size.getWidth() / 2, size.getHeight())); connectToNativeControls(m_mainView); @@ -163,7 +163,7 @@ public class QmlService extends Service implements QtQmlStatusChangeListener public void onChangeColorButtonListener(View view) { - m_serviceViewComponent.setColorStringFormat(getRandomColorString()); + m_serviceViewContent.setColorStringFormat(getRandomColorString()); final String qmlColor = m_serviceView.getProperty("colorStringFormat"); m_qmlBackgroundColorTextView.setText(qmlColor); |