Fix qml warnings in AccountSwitchDialog
This commit is contained in:
@@ -61,7 +61,7 @@ Kirigami.Dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.login', 'WelcomePage'), {}, {
|
((root.QQC2.ApplicationWindow.window as Kirigami.ApplicationWindow).pageStack as Kirigami.PageRow).pushDialogLayer(Qt.createComponent('org.kde.neochat.login', 'WelcomePage'), {}, {
|
||||||
title: i18nc("@title:window", "Login")
|
title: i18nc("@title:window", "Login")
|
||||||
});
|
});
|
||||||
root.close();
|
root.close();
|
||||||
@@ -95,8 +95,8 @@ Kirigami.Dialog {
|
|||||||
accountView.decrementCurrentIndex();
|
accountView.decrementCurrentIndex();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Keys.onEnterPressed: (accountView.currentItem as Delegates.RoundedItemDelegate ?? accountView.footerItem).clicked()
|
Keys.onEnterPressed: ((accountView.currentItem ?? accountView.footerItem) as Delegates.RoundedItemDelegate).clicked()
|
||||||
Keys.onReturnPressed: (accountView.currentItem as Delegates.RoundedItemDelegate ?? accountView.footerItem).clicked()
|
Keys.onReturnPressed: ((accountView.currentItem ?? accountView.footerItem) as Delegates.RoundedItemDelegate).clicked()
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
for (let i = 0; i < accountView.count; i++) {
|
for (let i = 0; i < accountView.count; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user