|
|
|
@ -229,21 +229,11 @@ Dialog {
|
|
|
|
|
Accessible.description: qsTr("Whether the file is already installed on your system")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Button {
|
|
|
|
|
MyButton {
|
|
|
|
|
id: removeButton
|
|
|
|
|
contentItem: Text {
|
|
|
|
|
color: theme.textColor
|
|
|
|
|
text: "Remove"
|
|
|
|
|
}
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
anchors.rightMargin: 20
|
|
|
|
|
background: Rectangle {
|
|
|
|
|
opacity: .5
|
|
|
|
|
border.color: theme.backgroundLightest
|
|
|
|
|
border.width: 1
|
|
|
|
|
radius: 10
|
|
|
|
|
color: theme.backgroundLight
|
|
|
|
|
}
|
|
|
|
|
onClicked: {
|
|
|
|
|
Download.removeModel(modelData.filename);
|
|
|
|
|
}
|
|
|
|
@ -300,12 +290,9 @@ Dialog {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Button {
|
|
|
|
|
MyButton {
|
|
|
|
|
id: downloadButton
|
|
|
|
|
contentItem: Text {
|
|
|
|
|
color: theme.textColor
|
|
|
|
|
text: downloading ? "Cancel" : "Download"
|
|
|
|
|
}
|
|
|
|
|
text: downloading ? qsTr("Cancel") : qsTr("Download")
|
|
|
|
|
anchors.top: modelName.top
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
anchors.topMargin: 15
|
|
|
|
@ -320,17 +307,9 @@ Dialog {
|
|
|
|
|
Download.cancelDownload(modelData.filename);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
background: Rectangle {
|
|
|
|
|
opacity: .5
|
|
|
|
|
border.color: theme.backgroundLightest
|
|
|
|
|
border.width: 1
|
|
|
|
|
radius: 10
|
|
|
|
|
color: theme.backgroundLight
|
|
|
|
|
}
|
|
|
|
|
Accessible.role: Accessible.Button
|
|
|
|
|
Accessible.name: text
|
|
|
|
|
Accessible.description: qsTr("Cancel/Download button to stop/start the download")
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -439,23 +418,11 @@ Dialog {
|
|
|
|
|
radius: 10
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Button {
|
|
|
|
|
text: qsTr("Browse")
|
|
|
|
|
contentItem: Text {
|
|
|
|
|
MyButton {
|
|
|
|
|
text: qsTr("Browse")
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
color: theme.textColor
|
|
|
|
|
Accessible.role: Accessible.Button
|
|
|
|
|
Accessible.name: text
|
|
|
|
|
Accessible.description: qsTr("Opens a folder picker dialog to choose where to save model files")
|
|
|
|
|
}
|
|
|
|
|
background: Rectangle {
|
|
|
|
|
opacity: .5
|
|
|
|
|
border.color: theme.backgroundLightest
|
|
|
|
|
border.width: 1
|
|
|
|
|
radius: 10
|
|
|
|
|
color: theme.backgroundLight
|
|
|
|
|
}
|
|
|
|
|
onClicked: modelPathDialog.open()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|