Skip to content

Commit b9ba8f3

Browse files
authored
Merge pull request #131 from myzinsky/prepare-for-1.6.1
Prepare for 1.6.1
2 parents 0d2d1f7 + de22769 commit b9ba8f3

File tree

10 files changed

+131
-19
lines changed

10 files changed

+131
-19
lines changed

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,20 @@ if(NOT ANDROID AND NOT IOS)
100100
target_link_libraries(CloudLogOffline PRIVATE Qt::Widgets) # Cf. main.cpp
101101
endif()
102102

103-
install(TARGETS CloudLogOffline)
103+
install(
104+
TARGETS CloudLogOffline
105+
RUNTIME DESTINATION .
106+
BUNDLE DESTINATION ${CMAKE_SOURCE_DIR}
107+
)
104108

105109

106110
option(BUILD_TESTING "Build tests" ON)
107111
if(BUILD_TESTING)
108112
enable_testing()
109113
add_subdirectory(tests)
110114
endif()
115+
116+
## This is required for localization permissions to work
117+
if(QT_VERSION_MAJOR EQUAL 6)
118+
qt_finalize_executable(${TARGET})
119+
endif()

CloudLogOffline.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ QT += core
1919
# cf. main.cpp
2020
!android:!ios: QT += widgets
2121

22+
QMAKE_IOS_DEPLOYMENT_TARGET = 17
23+
24+
2225
CONFIG += c++14
2326

2427
DEFINES += QT_DEPRECATED_WARNINGS

ios/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
<string>${IPHONEOS_DEPLOYMENT_TARGET}</string>
2525
<key>NOTE</key>
2626
<string>This file was generated by Qt/QMake.</string>
27+
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
28+
<string>The location is utilized to identify repeaters in the Hear-Ham database that are in close proximity to your current position.</string>
2729
<key>NSLocationWhenInUseUsageDescription</key>
28-
<string>The location is utilized to identify repeaters in the Hear-Ham database that are in close proximity to your current position.</string>
29-
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
30-
<string>The location is utilized to identify repeaters in the Hear-Ham database that are in close proximity to your current position.</string>
30+
<string>The location is utilized to identify repeaters in the Hear-Ham database that are in close proximity to your current position.</string>
3131
<key>UILaunchStoryboardName</key>
3232
<string>myLaunchScreen.xib</string>
3333
<key>UIRequiresFullScreen</key>

macos/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
<string>NSApplication</string>
2727
<key>NSSupportsAutomaticGraphicsSwitching</key>
2828
<true/>
29+
<key>CFBundleAllowMixedLocalizations</key>
30+
<true/>
2931
<key>NSLocationWhenInUseUsageDescription</key>
3032
<string>Locating repeaters near your location</string>
3133
</dict>

qml/ExportView.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Page {
2525

2626
function onUploadFailed(error) {
2727
cloudLogMessage.text = error
28+
console.log(error)
2829
cloudLogMessage.open()
2930
}
3031
}

qml/Main.qml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ ApplicationWindow {
2626
onTriggered: {
2727
console.log("Orientation changed")
2828
console.log("safe margins =", JSON.stringify(tools.getSafeAreaMargins(window)))
29-
notchTop = tools.getSafeAreaMargins(window)["top"]
29+
//notchTop = tools.getSafeAreaMargins(window)["top"]
30+
notchTop = 0
3031
notchLeft = tools.getSafeAreaMargins(window)["left"]
3132
notchRight = tools.getSafeAreaMargins(window)["right"]
3233
safeWidth = window.width - tools.getSafeAreaMargins(window)["left"] - tools.getSafeAreaMargins(window)["right"]
@@ -40,7 +41,7 @@ ApplicationWindow {
4041

4142
Component.onCompleted: {
4243
tm.switchToLanguage(settings.language)
43-
notchTop = tools.getSafeAreaMargins(window)["top"] // iPhoneX workaround
44+
//notchTop = tools.getSafeAreaMargins(window)["top"] // iPhoneX workaround
4445

4546
console.log("load settings.language:" + settings.language)
4647
console.log("safe margins =", JSON.stringify(tools.getSafeAreaMargins(window)))
@@ -116,7 +117,8 @@ ApplicationWindow {
116117
header: ToolBar {
117118
contentHeight: toolButton.implicitHeight + notchTop // iPhone X Workaround
118119

119-
Material.primary: Material.BlueGrey
120+
//Material.primary: Material.BlueGrey
121+
Material.primary: Material.color(Material.BlueGrey, Material.Shade500)
120122

121123
ToolButton {
122124
id: toolButton
@@ -234,6 +236,7 @@ ApplicationWindow {
234236
}
235237

236238
ListElement {
239+
pageCommand: "repeater"
237240
pageTitle: qsTr ("Add Repeater QSO")
238241
pageIcon: "\uf055"
239242
onTriggered: function() {

qml/PageDrawer.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ Drawer {
191191
model: items
192192
width: parent.width
193193
pageSelector: listView
194+
visible: pageCommand !== "repeater" || settings.rbActive
194195

195196
onClicked: {
196197
if (listView.currentIndex !== index)

qml/QSOItem.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import QtQuick 2.12
22
import QtQuick.Layouts 1.0
33
import QtQuick.Controls 2.12
4-
import QtQuick.Controls.Material 2.12
4+
import QtQuick.Controls.Material 2.4
55
import Qt5Compat.GraphicalEffects
66

77
SwipeDelegate {
@@ -45,7 +45,7 @@ SwipeDelegate {
4545
anchors.topMargin: 5
4646
font.wordSpacing: 0
4747
font.capitalization: Font.Capitalize
48-
color: "#607D8B"
48+
color: Material.color(Material.BlueGrey, Material.Shade400)
4949
font.pixelSize: 20
5050
font.bold: true
5151
}

0 commit comments

Comments
 (0)