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

double quotation

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