mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 18:06:31 +02:00
[ui] add string <--> file representation convertors
* convenient methods to conform strings to Qt file reprensentation using the "file:/" protocol prefix * use those methodes when manipulating files
This commit is contained in:
parent
62726b4663
commit
2cdc83f06f
7 changed files with 38 additions and 6 deletions
|
@ -2,6 +2,7 @@ import QtQuick 2.9
|
|||
import QtQuick.Layouts 1.3
|
||||
import QtQuick.Controls 2.2
|
||||
import MaterialIcons 2.2
|
||||
import Utils 1.0
|
||||
|
||||
/**
|
||||
A component to display and edit a Node's attributes.
|
||||
|
@ -43,7 +44,7 @@ ColumnLayout {
|
|||
id: settingsMenu
|
||||
MenuItem {
|
||||
text: "Open Cache Folder"
|
||||
onClicked: Qt.openUrlExternally("file://" + node.internalFolder)
|
||||
onClicked: Qt.openUrlExternally(Filepath.stringToFile(node.internalFolder))
|
||||
ToolTip.text: node.internalFolder
|
||||
ToolTip.visible: hovered
|
||||
ToolTip.delay: 500
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue