From e537cb8944bf13f763f638783c336ad7e5218bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Han=C3=A7erli?= <burak.hancerli@qt.io> Date: Fri, 8 Dec 2023 11:03:56 +0000 Subject: [PATCH] QDS-11466 Add designviewer.qt.io domain intent --- android/AndroidManifest.xml | 18 ++++++++++++------ src/backend.cpp | 1 + 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index cc63b52..f5ff690 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -14,14 +14,20 @@ android:label="Qt UI Viewer" android:launchMode="singleTask" android:screenOrientation="unspecified" android:exported="true"> <intent-filter> - <action android:name="android.intent.action.MAIN"/> - <category android:name="android.intent.category.LAUNCHER"/> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> <intent-filter> - <action android:name="android.intent.action.VIEW"/> - <category android:name="android.intent.category.DEFAULT"/> - <category android:name="android.intent.category.BROWSABLE"/> - <data android:scheme="qtdesignviewer"/> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.DEFAULT" /> + <category android:name="android.intent.category.BROWSABLE" /> + <data android:scheme="qtdesignviewer" /> + </intent-filter> + <intent-filter> + <action android:name="android.intent.action.VIEW" /> + <category android:name="android.intent.category.BROWSABLE" /> + <category android:name="android.intent.category.DEFAULT" /> + <data android:host="designviewer.qt.io" android:scheme="https" /> </intent-filter> <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/> <meta-data android:name="android.app.arguments" android:value="-- %%INSERT_APP_ARGUMENTS%% --"/> diff --git a/src/backend.cpp b/src/backend.cpp index 3e4568e..a94691d 100644 --- a/src/backend.cpp +++ b/src/backend.cpp @@ -39,6 +39,7 @@ Backend::Backend(QObject *parent) { // This will allow us to open the app with the QR code QDesktopServices::setUrlHandler("qtdesignviewer", this, "parseDesignViewerUrl"); + QDesktopServices::setUrlHandler("https", this, "parseDesignViewerUrl"); } void Backend::initialize() -- GitLab