Skip to content
Snippets Groups Projects
Commit b5363739 authored by akiraohgaki's avatar akiraohgaki
Browse files

double quotation

parent dec97ca2
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import QtQuick.Window 2.0
import QtQuick.Controls 1.2
import QtQuick.Dialogs 1.2
import 'scripts/Utility.js' as Utility
import "scripts/Utility.js" as Utility
Window {
id: root
......@@ -19,9 +19,9 @@ Window {
id: confirmDialog
title: root.title
icon: StandardIcon.Question
text: ''
informativeText: ''
detailedText: ''
text: ""
informativeText: ""
detailedText: ""
standardButtons: StandardButton.Ok | StandardButton.Cancel
onAccepted: xdgUrlHandler.process()
onRejected: Qt.quit()
......@@ -31,9 +31,9 @@ Window {
id: infoDialog
title: root.title
icon: StandardIcon.Information
text: ''
informativeText: ''
detailedText: ''
text: ""
informativeText: ""
detailedText: ""
standardButtons: StandardButton.Open | StandardButton.Close
onAccepted: {
xdgUrlHandler.openDestination();
......@@ -46,9 +46,9 @@ Window {
id: errorDialog
title: root.title
icon: StandardIcon.Warning
text: ''
informativeText: ''
detailedText: ''
text: ""
informativeText: ""
detailedText: ""
standardButtons: StandardButton.Close
onRejected: Qt.quit()
}
......@@ -65,12 +65,12 @@ Window {
spacing: 8
Label {
id: primaryLabel
text: ''
text: ""
font.bold: true
}
Label {
id: informativeLabel
text: ''
text: ""
}
ProgressBar {
id: progressBar
......@@ -82,12 +82,12 @@ Window {
}
Label {
id: progressLabel
text: ''
text: ""
anchors.right: parent.right
}
Button {
id: cancelButton
text: 'Cancel'
text: "Cancel"
anchors.right: parent.right
onClicked: Qt.quit()
}
......@@ -102,12 +102,12 @@ Window {
Component.onCompleted: {
var metadata = xdgUrlHandler.metadata();
var primaryMessages = {
'success_download': 'Download successfull',
'success_install': 'Installation successfull',
'error_validation': 'Validation error',
'error_network': 'Network error',
'error_save': 'Saving file failed',
'error_install': 'Installation failed'
"success_download": "Download successfull",
"success_install": "Installation successfull",
"error_validation": "Validation error",
"error_network": "Network error",
"error_save": "Saving file failed",
"error_install": "Installation failed"
};
xdgUrlHandler.started.connect(function() {
......@@ -131,24 +131,24 @@ Window {
});
xdgUrlHandler.downloadProgress.connect(function(bytesReceived, bytesTotal) {
progressDialog.primaryLabel.text = 'Downloading... ';
progressDialog.primaryLabel.text = "Downloading... ";
progressDialog.informativeLabel.text = metadata.filename;
progressDialog.progressBar.value = bytesReceived / bytesTotal;
progressDialog.progressLabel.text = Utility.convertByteToHumanReadable(bytesReceived)
+ ' / ' + Utility.convertByteToHumanReadable(bytesTotal)
+ " / " + Utility.convertByteToHumanReadable(bytesTotal)
});
if (xdgUrlHandler.isValid()) {
confirmDialog.text = 'Do you want to ' + metadata.command + '?';
confirmDialog.text = "Do you want to " + metadata.command + "?";
confirmDialog.informativeText = metadata.filename;
confirmDialog.detailedText = 'URL: ' + metadata.url + '\n\n'
+ 'File: ' + metadata.filename + '\n\n'
+ 'Type: ' + metadata.type;
confirmDialog.detailedText = "URL: " + metadata.url + "\n\n"
+ "File: " + metadata.filename + "\n\n"
+ "Type: " + metadata.type;
confirmDialog.open();
}
else {
errorDialog.text = 'Validation error';
errorDialog.detailedText = 'Invalid XDG-URL ' + xdgUrlHandler.xdgUrl();
errorDialog.text = "Validation error";
errorDialog.detailedText = "Invalid XDG-URL " + xdgUrlHandler.xdgUrl();
errorDialog.open();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment