Fix unqualified access
This commit is contained in:
@@ -28,7 +28,7 @@ FormCard.FormCardPage {
|
|||||||
interval: 10
|
interval: 10
|
||||||
running: false
|
running: false
|
||||||
onTriggered: root.QQC2.ApplicationWindow.window.pageStack.layers.push(Qt.createComponent('org.kde.neochat.settings', 'AccountEditorPage'), {
|
onTriggered: root.QQC2.ApplicationWindow.window.pageStack.layers.push(Qt.createComponent('org.kde.neochat.settings', 'AccountEditorPage'), {
|
||||||
connection: initialAccount
|
connection: root.initialAccount
|
||||||
}, {
|
}, {
|
||||||
title: i18n("Account editor")
|
title: i18n("Account editor")
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ FormCard.FormCardPage {
|
|||||||
|
|
||||||
FormCard.AbstractFormDelegate {
|
FormCard.AbstractFormDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: root.connection && devicesModel.count === 0 // We can assume 0 means loading since there is at least one device
|
visible: root.connection && root.devicesModel.count === 0 // We can assume 0 means loading since there is at least one device
|
||||||
contentItem: Kirigami.LoadingPlaceholder {}
|
contentItem: Kirigami.LoadingPlaceholder {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ FormCard.FormCardPage {
|
|||||||
title: emoticonType === EmoticonFormCard.Stickers ? (newEmoticon ? i18nc("@title:window", "Add Sticker") : i18nc("@title:window", "Edit Sticker")) : (newEmoticon ? i18nc("@title:window", "Add Emoji") : i18nc("@title:window", "Edit Emoji"))
|
title: emoticonType === EmoticonFormCard.Stickers ? (newEmoticon ? i18nc("@title:window", "Add Sticker") : i18nc("@title:window", "Edit Sticker")) : (newEmoticon ? i18nc("@title:window", "Add Emoji") : i18nc("@title:window", "Edit Emoji"))
|
||||||
|
|
||||||
FormCard.FormHeader {
|
FormCard.FormHeader {
|
||||||
title: emoticonType === EmoticonFormCard.Stickers ? i18nc("@info:group", "Sticker") : i18nc("@info:group", "Emoji")
|
title: root.emoticonType === EmoticonFormCard.Stickers ? i18nc("@info:group", "Sticker") : i18nc("@info:group", "Emoji")
|
||||||
}
|
}
|
||||||
FormCard.FormCard {
|
FormCard.FormCard {
|
||||||
FormCard.AbstractFormDelegate {
|
FormCard.AbstractFormDelegate {
|
||||||
@@ -44,11 +44,9 @@ FormCard.FormCardPage {
|
|||||||
source: root.url
|
source: root.url
|
||||||
sourceSize.width: Kirigami.Units.gridUnit * 4
|
sourceSize.width: Kirigami.Units.gridUnit * 4
|
||||||
sourceSize.height: Kirigami.Units.gridUnit * 4
|
sourceSize.height: Kirigami.Units.gridUnit * 4
|
||||||
width: Kirigami.Units.gridUnit * 4
|
|
||||||
height: Kirigami.Units.gridUnit * 4
|
|
||||||
|
|
||||||
Kirigami.Icon {
|
Kirigami.Icon {
|
||||||
source: emoticonType === EmoticonFormCard.Stickers ? "stickers" : "preferences-desktop-emoticons"
|
source: root.emoticonType === EmoticonFormCard.Stickers ? "stickers" : "preferences-desktop-emoticons"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: parent.status !== Image.Ready
|
visible: parent.status !== Image.Ready
|
||||||
}
|
}
|
||||||
@@ -75,7 +73,7 @@ FormCard.FormCardPage {
|
|||||||
if (fileDialog != null) {
|
if (fileDialog != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fileDialog = openFileDialog.createObject(QQC2.Overlay.overlay);
|
fileDialog = root.openFileDialog.createObject(QQC2.Overlay.overlay);
|
||||||
fileDialog.chosen.connect(function (receivedSource) {
|
fileDialog.chosen.connect(function (receivedSource) {
|
||||||
mouseArea.fileDialog = null;
|
mouseArea.fileDialog = null;
|
||||||
if (!receivedSource) {
|
if (!receivedSource) {
|
||||||
|
|||||||
Reference in New Issue
Block a user