Get KF6 Working
Minimal set of changes so that a compiled version of NeoChat on KF6 will run and at least be functional.
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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -122,10 +122,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)
|
||||||
|
|
||||||
|
|||||||
@@ -31,12 +31,12 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
title: roomInformation.title
|
title: roomInformation.title
|
||||||
|
|
||||||
actions {
|
actions: [
|
||||||
main: Kirigami.Action {
|
Kirigami.Action {
|
||||||
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") })
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
|
|
||||||
RoomInformation {
|
RoomInformation {
|
||||||
id: roomInformation
|
id: roomInformation
|
||||||
|
|||||||
Reference in New Issue
Block a user