Change all remaining QML file ids to "root"
This commit is contained in:
@@ -11,7 +11,7 @@ import org.kde.kirigamiaddons.delegates 1.0 as Delegates
|
||||
import org.kde.neochat 1.0
|
||||
|
||||
QQC2.ToolBar {
|
||||
id: userInfo
|
||||
id: root
|
||||
|
||||
padding: 0
|
||||
|
||||
@@ -33,7 +33,7 @@ QQC2.ToolBar {
|
||||
id: addButton
|
||||
width: parent.width
|
||||
highlighted: focus || (addAccount.highlighted || addAccount.ListView.isCurrentItem) && !addAccount.pressed
|
||||
Component.onCompleted: userInfo.addAccount = this
|
||||
Component.onCompleted: root.addAccount = this
|
||||
icon {
|
||||
name: "list-add"
|
||||
width: Kirigami.Units.iconSizes.smallMedium
|
||||
|
||||
@@ -10,23 +10,24 @@ import org.kde.kirigami 2.15 as Kirigami
|
||||
import org.kde.neochat 1.0
|
||||
|
||||
Kirigami.ApplicationWindow {
|
||||
id: window
|
||||
id: root
|
||||
|
||||
required property NeoChatRoom currentRoom
|
||||
minimumWidth: Kirigami.Units.gridUnit * 10
|
||||
minimumHeight: Kirigami.Units.gridUnit * 15
|
||||
|
||||
Shortcut {
|
||||
sequence: StandardKey.Cancel
|
||||
onActivated: window.close()
|
||||
onActivated: root.close()
|
||||
}
|
||||
pageStack.initialPage: RoomPage {
|
||||
visible: true
|
||||
currentRoom: window.currentRoom
|
||||
currentRoom: root.currentRoom
|
||||
disableCancelShortcut: true
|
||||
}
|
||||
|
||||
onCurrentRoomChanged: if (!currentRoom) {
|
||||
window.close()
|
||||
root.close()
|
||||
}
|
||||
|
||||
property Item hoverLinkIndicator: QQC2.Control {
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.kde.kirigami 2.20 as Kirigami
|
||||
import org.kde.neochat 1.0
|
||||
|
||||
Kirigami.ScrollablePage {
|
||||
id: searchPage
|
||||
id: root
|
||||
|
||||
property NeoChatRoom currentRoom
|
||||
|
||||
@@ -22,7 +22,7 @@ Kirigami.ScrollablePage {
|
||||
id: searchModel
|
||||
connection: Controller.activeConnection
|
||||
searchText: searchField.text
|
||||
room: searchPage.currentRoom
|
||||
room: root.currentRoom
|
||||
}
|
||||
|
||||
header: RowLayout {
|
||||
|
||||
Reference in New Issue
Block a user