Skip to content

Commit cc8e59a

Browse files
authored
Merge pull request #546 from OpenHD/2.3-evo-consti-dev
android release
2 parents ed50e04 + 007544b commit cc8e59a

File tree

3 files changed

+68
-10
lines changed

3 files changed

+68
-10
lines changed

android/AndroidManifest.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<manifest package="com.openhd.openhd" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="v4" android:versionCode="4" android:installLocation="auto">
2+
<manifest package="com.openhd.openhd" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="v5" android:versionCode="5" android:installLocation="auto">
33
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31"/>
44

55
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
@@ -82,6 +82,8 @@
8282
<meta-data android:name="android.app.splash_screen_sticky" android:value="true"/>
8383
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splashscreen"/>
8484
<meta-data android:name="android.app.splash_screen_sticky" android:value="true"/>
85+
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/splashscreen"/>
86+
<meta-data android:name="android.app.splash_screen_sticky" android:value="true"/>
8587
</activity>
8688
<!-- For adding service(s) please check: https://wiki.qt.io/AndroidServices -->
8789
</application>

qml/qml.qrc

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
<RCC>
2-
<qresource prefix="/translations" lang="en">
2+
<qresource lang="en" prefix="/translations">
33
<file alias="QOpenHD.qm">../translations/QOpenHD_en.qm</file>
44
<file>resources/cursors/arrow_512_green.png</file>
55
<file>resources/cursors/arrow_512_transparent.png</file>
66
<file>resources/cursors/arrow_512_white.png</file>
77
<file>resources/cursors/hand_white.png</file>
88
</qresource>
9-
<qresource prefix="/translations" lang="de">
9+
<qresource lang="de" prefix="/translations">
1010
<file alias="QOpenHD.qm">../translations/QOpenHD_de.qm</file>
1111
</qresource>
12-
<qresource prefix="/translations" lang="ru">
12+
<qresource lang="ru" prefix="/translations">
1313
<file alias="QOpenHD.qm">../translations/QOpenHD_ru.qm</file>
1414
</qresource>
15-
<qresource prefix="/translations" lang="es">
15+
<qresource lang="es" prefix="/translations">
1616
<file alias="QOpenHD.qm">../translations/QOpenHD_es.qm</file>
1717
</qresource>
18-
<qresource prefix="/translations" lang="fr">
18+
<qresource lang="fr" prefix="/translations">
1919
<file alias="QOpenHD.qm">../translations/QOpenHD_fr.qm</file>
2020
</qresource>
21-
<qresource prefix="/translations" lang="nl">
21+
<qresource lang="nl" prefix="/translations">
2222
<file alias="QOpenHD.qm">../translations/QOpenHD_nl.qm</file>
2323
</qresource>
24-
<qresource prefix="/translations" lang="ro">
24+
<qresource lang="ro" prefix="/translations">
2525
<file alias="QOpenHD.qm">../translations/QOpenHD_ro.qm</file>
2626
</qresource>
27-
<qresource prefix="/translations" lang="it">
27+
<qresource lang="it" prefix="/translations">
2828
<file alias="QOpenHD.qm">../translations/QOpenHD_it.qm</file>
2929
</qresource>
30-
<qresource prefix="/translations" lang="zh">
30+
<qresource lang="zh" prefix="/translations">
3131
<file alias="QOpenHD.qm">../translations/QOpenHD_zh.qm</file>
3232
</qresource>
3333
<qresource prefix="/">
@@ -235,5 +235,6 @@
235235
<file>resources/cursors/arrow_512_green.png</file>
236236
<file>resources/cursors/arrow_512_white.png</file>
237237
<file>resources/cursors/hand_white.png</file>
238+
<file>ui/configpopup/ConnectPanel.qml</file>
238239
</qresource>
239240
</RCC>

qml/ui/configpopup/ConnectPanel.qml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import QtQuick 2.12
2+
import QtQuick.Controls 2.12
3+
import QtQuick.Layouts 1.12
4+
import QtQuick.Dialogs 1.0
5+
import QtQuick.Controls.Material 2.12
6+
7+
import Qt.labs.settings 1.0
8+
9+
import OpenHD 1.0
10+
11+
import "../../ui" as Ui
12+
import "../elements"
13+
14+
// This panel is only for users that run QOpenHD on an external device,e.g. android not on the ground station itself
15+
Item {
16+
Layout.fillHeight: true
17+
Layout.fillWidth: true
18+
19+
property int rowHeight: 64
20+
property int elementHeight: 48
21+
property int elementComboBoxWidth: 300
22+
23+
// Tab bar for selecting items in stack layout
24+
TabBar {
25+
id: selectItemInStackLayoutBar
26+
width: parent.width
27+
TabButton {
28+
text: qsTr("USB Tether")
29+
}
30+
TabButton {
31+
text: qsTr("Ethernet / USB to Ethernet")
32+
}
33+
}
34+
35+
// placed right below the top bar
36+
StackLayout {
37+
width: parent.width
38+
height: parent.height-selectItemInStackLayoutBar.height
39+
anchors.top: selectItemInStackLayoutBar.bottom
40+
anchors.left: selectItemInStackLayoutBar.left
41+
anchors.bottom: parent.bottom
42+
currentIndex: selectItemInStackLayoutBar.currentIndex
43+
44+
Pane {
45+
TextArea{
46+
text: "Connect your phone via high quality USB cable to your ground station and enable USB Tethering on your phone."
47+
}
48+
}
49+
Pane {
50+
TextArea{
51+
text: "TODO"
52+
}
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)