实现调用系统程序打开文件
parent
3a79d7b0d2
commit
b8581ba3df
|
@ -117,6 +117,20 @@ Rectangle {
|
|||
Layout.rightMargin: 10
|
||||
iconSource: FluentIcons.PenPalette
|
||||
iconSize: 14
|
||||
onClicked: {
|
||||
note_menu.open()
|
||||
}
|
||||
FluMenu {
|
||||
id: note_menu
|
||||
x: parent ? (parent.width - width) / 2 : 0
|
||||
y: parent ? parent.height : 0
|
||||
FluMenuItem {
|
||||
text: "收藏的笔记"
|
||||
}
|
||||
FluMenuItem {
|
||||
text: "我的笔记"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
|
@ -218,5 +232,6 @@ Rectangle {
|
|||
frameless_helper.setHitTestVisible(btn_maximize)
|
||||
frameless_helper.setHitTestVisible(btn_close)
|
||||
frameless_helper.setHitTestVisible(btn_transfer)
|
||||
frameless_helper.setHitTestVisible(btn_note)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ FluArea {
|
|||
property int shareCount: 0
|
||||
property int browsCount: 555
|
||||
property bool isFavorite: false
|
||||
property bool isDownload: false
|
||||
property bool isDownload: UserData.downloadedFiles.indexOf(fileId) != -1
|
||||
property double fileSize: 0
|
||||
property string title: "文章标题"
|
||||
property list<string> tags: ["tag 1", "tag 2", "tag 3"]
|
||||
|
@ -249,7 +249,7 @@ FluArea {
|
|||
FileTransferManager.download(content_page.fileId,
|
||||
content_page.title)
|
||||
else {
|
||||
|
||||
FileTransferManager.openLocalFile(content_page.title)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue