|
@@ -13,9 +13,13 @@ Item {
|
|
Connections {
|
|
Connections {
|
|
target: _qmlHandler
|
|
target: _qmlHandler
|
|
onReceivingDisableDownloadButton: {
|
|
onReceivingDisableDownloadButton: {
|
|
- if (fileNameText == fileName) {
|
|
|
|
- fileExists = true
|
|
|
|
- }
|
|
|
|
|
|
+ if (fileNameText == fileName) {
|
|
|
|
+ fileExists = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ onReceivingCloseConfirmDeletePopup: {
|
|
|
|
+ confirmDeletePopup.close()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -60,7 +64,7 @@ Item {
|
|
Layout.alignment: Qt.AlignCenter
|
|
Layout.alignment: Qt.AlignCenter
|
|
Layout.preferredHeight: parent.height
|
|
Layout.preferredHeight: parent.height
|
|
Layout.preferredWidth: 200
|
|
Layout.preferredWidth: 200
|
|
- enabled: !fileExists;
|
|
|
|
|
|
+ enabled: !fileExists
|
|
text: fileExists ? qsTr("Already Downloaded") : qsTr("Download")
|
|
text: fileExists ? qsTr("Already Downloaded") : qsTr("Download")
|
|
|
|
|
|
onClicked: _qmlHandler.onReceivingDownloadFileButton(fileNameText)
|
|
onClicked: _qmlHandler.onReceivingDownloadFileButton(fileNameText)
|
|
@@ -72,6 +76,12 @@ Item {
|
|
Layout.preferredHeight: parent.height
|
|
Layout.preferredHeight: parent.height
|
|
Layout.preferredWidth: 200
|
|
Layout.preferredWidth: 200
|
|
text: qsTr("Delete from server")
|
|
text: qsTr("Delete from server")
|
|
|
|
+
|
|
|
|
+ onClicked: confirmDeletePopup.open()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ ReceivingFileTemplateDeletePopup {
|
|
|
|
+ id: confirmDeletePopup
|
|
|
|
+ }
|
|
}
|
|
}
|