From b5363739e91559c2f51c0498f43d2949284bb30c Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Sat, 10 Dec 2016 21:20:54 +0900 Subject: [PATCH] double quotation --- src/app/qml/main.qml | 56 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/app/qml/main.qml b/src/app/qml/main.qml index 1d68730..11b3165 100644 --- a/src/app/qml/main.qml +++ b/src/app/qml/main.qml @@ -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(); } } -- GitLab