Fix some qmllint warnings
This commit is contained in:
@@ -26,11 +26,11 @@ QQC2.Popup {
|
|||||||
|
|
||||||
icon.name: 'mail-attachment'
|
icon.name: 'mail-attachment'
|
||||||
|
|
||||||
text: i18n("Choose local file")
|
text: i18nc("@action:button", "Choose local file")
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.close();
|
root.close();
|
||||||
var fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay);
|
var fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay) as OpenFileDialog;
|
||||||
fileDialog.chosen.connect(path => root.chosen(path));
|
fileDialog.chosen.connect(path => root.chosen(path));
|
||||||
fileDialog.open();
|
fileDialog.open();
|
||||||
}
|
}
|
||||||
@@ -42,7 +42,7 @@ QQC2.Popup {
|
|||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
icon.name: 'insert-image'
|
icon.name: 'insert-image'
|
||||||
text: i18n("Clipboard image")
|
text: i18nc("@action:button", "Clipboard image")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
const path = StandardPaths.standardLocations(StandardPaths.CacheLocation)[0] + "/screenshots/" + (new Date()).getTime() + ".png";
|
const path = StandardPaths.standardLocations(StandardPaths.CacheLocation)[0] + "/screenshots/" + (new Date()).getTime() + ".png";
|
||||||
if (!Clipboard.saveImage(path)) {
|
if (!Clipboard.saveImage(path)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user