Skip to content

Commit 69b1091

Browse files
committed
Chore: 使用高德图标
1 parent de227f0 commit 69b1091

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
进入 QField (3.3 及以上版本)设置, 点开`管理插件` > `从 URL 安装插件`, 输入本插件的 URL 地址:
88

99
```text
10-
https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.2/qfield-amap-nav.zip
10+
https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.3/qfield-amap-nav.zip
1111
```
1212

1313
国内可使用 [GitHub Proxy](https://mirror.ghproxy.com/) 代理加速:
1414

1515
```text
16-
https://mirror.ghproxy.com/https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.2/qfield-amap-nav.zip
16+
https://mirror.ghproxy.com/https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.3/qfield-amap-nav.zip
1717
```
1818

1919
## 使用插件

main.qml

+14-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,22 @@ Item {
1818
MenuItem {
1919
id: amapnavto
2020
width: parent.width
21-
text: qsTr("使用高德地图导航至此位置")
2221
height: 48
2322
leftPadding: Theme.menuItemLeftPadding
24-
font: Theme.defaultFont
25-
icon.source: Theme.getThemeVectorIcon( "ic_compass_arrow_24dp" ) // 如何自定义图标?
23+
24+
QfToolButton {
25+
id: amapicon
26+
iconSource: 'icon.svg'
27+
}
28+
Text {
29+
id: amaptext
30+
anchors.verticalCenter: parent.verticalCenter
31+
leftPadding: Theme.menuItemLeftPadding + 36
32+
text: qsTr("使用高德地图导航至此位置")
33+
font: Theme.defaultFont
34+
color: Theme.mainTextColor
35+
}
36+
2637
onTriggered: {
2738
if (Qt.platform.os === 'android')
2839
{ // 将地图坐标转换为 WGS84 坐标

metadata.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name=AMAP NAV
33
description=在QField中使用高德地图进行导航
44
author=liuxs.pro
55
icon=icon.svg
6-
version=0.0.2
6+
version=0.0.3
77
homepage=https://github.com/liuxspro/qfield-amap-nav

0 commit comments

Comments
 (0)