Adapt to QML api changes
This commit is contained in:
@@ -31,15 +31,15 @@ Kirigami.Page {
|
|||||||
imageDoc.crop(selectionTool.selectionX / ratioX, selectionTool.selectionY / ratioY, selectionTool.selectionWidth / ratioX, selectionTool.selectionHeight / ratioY);
|
imageDoc.crop(selectionTool.selectionX / ratioX, selectionTool.selectionY / ratioY, selectionTool.selectionWidth / ratioX, selectionTool.selectionHeight / ratioY);
|
||||||
}
|
}
|
||||||
|
|
||||||
actions {
|
actions: [
|
||||||
left: Kirigami.Action {
|
Kirigami.Action {
|
||||||
id: undoAction
|
id: undoAction
|
||||||
text: i18nc("@action:button Undo modification", "Undo")
|
text: i18nc("@action:button Undo modification", "Undo")
|
||||||
icon.name: "edit-undo"
|
icon.name: "edit-undo"
|
||||||
onTriggered: imageDoc.undo();
|
onTriggered: imageDoc.undo();
|
||||||
visible: imageDoc.edited
|
visible: imageDoc.edited
|
||||||
}
|
},
|
||||||
main: Kirigami.Action {
|
Kirigami.Action {
|
||||||
id: okAction
|
id: okAction
|
||||||
text: i18nc("@action:button Accept image modification", "Accept")
|
text: i18nc("@action:button Accept image modification", "Accept")
|
||||||
icon.name: "dialog-ok"
|
icon.name: "dialog-ok"
|
||||||
@@ -54,7 +54,7 @@ Kirigami.Page {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -138,10 +138,10 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
title: i18nc("@title:window", "Add server")
|
title: i18nc("@title:window", "Add server")
|
||||||
|
|
||||||
onSheetOpenChanged: if (!serverUrlField.isValidServer && !sheetOpen) {
|
onOpened: if (!serverUrlField.isValidServer && !opened) {
|
||||||
serverField.currentIndex = 0
|
serverField.currentIndex = 0
|
||||||
server = serverField.currentValue
|
server = serverField.currentValue
|
||||||
} else if (sheetOpen) {
|
} else if (opened) {
|
||||||
serverUrlField.forceActiveFocus()
|
serverUrlField.forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,13 +27,13 @@ Kirigami.Page {
|
|||||||
focus: true
|
focus: true
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
actions {
|
actions: [
|
||||||
main: Kirigami.Action {
|
Kirigami.Action {
|
||||||
visible: Kirigami.Settings.isMobile || !applicationWindow().pageStack.wideMode
|
visible: Kirigami.Settings.isMobile || !applicationWindow().pageStack.wideMode
|
||||||
icon.name: "view-right-new"
|
icon.name: "view-right-new"
|
||||||
onTriggered: applicationWindow().openRoomDrawer()
|
onTriggered: applicationWindow().openRoomDrawer()
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
KeyNavigation.left: pageStack.get(0)
|
KeyNavigation.left: pageStack.get(0)
|
||||||
|
|
||||||
|
|||||||
@@ -38,14 +38,14 @@ Kirigami.Page {
|
|||||||
|
|
||||||
Component.onCompleted: infoAction.toggle()
|
Component.onCompleted: infoAction.toggle()
|
||||||
|
|
||||||
actions {
|
actions: [
|
||||||
main: Kirigami.Action {
|
Kirigami.Action {
|
||||||
displayHint: Kirigami.DisplayHint.IconOnly
|
displayHint: Kirigami.DisplayHint.IconOnly
|
||||||
text: i18n("Settings")
|
text: i18n("Settings")
|
||||||
icon.name: "settings-configure"
|
icon.name: "settings-configure"
|
||||||
onTriggered: applicationWindow().pageStack.pushDialogLayer('qrc:/Categories.qml', {room: root.room}, { title: i18n("Room Settings") })
|
onTriggered: applicationWindow().pageStack.pushDialogLayer('qrc:/Categories.qml', {room: root.room}, { title: i18n("Room Settings") })
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: drawerItemLoader
|
id: drawerItemLoader
|
||||||
|
|||||||
@@ -173,9 +173,9 @@ QQC2.ScrollView {
|
|||||||
room: root.room
|
room: root.room
|
||||||
}
|
}
|
||||||
|
|
||||||
sortRole: "powerLevel"
|
sortRoleName: "powerLevel"
|
||||||
sortOrder: Qt.DescendingOrder
|
sortOrder: Qt.DescendingOrder
|
||||||
filterRole: "name"
|
filterRoleName: "name"
|
||||||
filterCaseSensitivity: Qt.CaseInsensitive
|
filterCaseSensitivity: Qt.CaseInsensitive
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user