Move the devtools button to UserInfo
Makes more sense now that room is selectable anyway and allows access from space home pages
This commit is contained in:
@@ -30,7 +30,7 @@ ColumnLayout {
|
|||||||
id: roomListModel
|
id: roomListModel
|
||||||
connection: root.connection
|
connection: root.connection
|
||||||
}
|
}
|
||||||
currentIndex: -1
|
currentIndex: 0
|
||||||
Component.onCompleted: currentIndex = roomListModel.rowForRoom(root.room)
|
Component.onCompleted: currentIndex = roomListModel.rowForRoom(root.room)
|
||||||
onCurrentValueChanged: root.room = roomListModel.roomByAliasOrId(roomComboBox.currentValue)
|
onCurrentValueChanged: root.room = roomListModel.roomByAliasOrId(roomComboBox.currentValue)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,25 +72,6 @@ QQC2.ScrollView {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Delegates.RoundedItemDelegate {
|
|
||||||
id: devtoolsButton
|
|
||||||
|
|
||||||
icon.name: "tools"
|
|
||||||
text: i18n("Open developer tools")
|
|
||||||
visible: Config.developerTools && !root.room.isSpace
|
|
||||||
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
onClicked: {
|
|
||||||
applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'DevtoolsPage.qml'), {
|
|
||||||
room: root.room,
|
|
||||||
connection: root.connection
|
|
||||||
}, {
|
|
||||||
title: i18n("Developer Tools")
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Delegates.RoundedItemDelegate {
|
Delegates.RoundedItemDelegate {
|
||||||
id: searchButton
|
id: searchButton
|
||||||
visible: !root.room.isSpace
|
visible: !root.room.isSpace
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ ColumnLayout {
|
|||||||
}
|
}
|
||||||
FormCard.FormCard {
|
FormCard.FormCard {
|
||||||
Repeater {
|
Repeater {
|
||||||
model: room.connection.getSupportedRoomVersions()
|
model: root.connection.getSupportedRoomVersions()
|
||||||
|
|
||||||
delegate: FormCard.FormTextDelegate {
|
delegate: FormCard.FormTextDelegate {
|
||||||
text: modelData.id
|
text: modelData.id
|
||||||
|
|||||||
@@ -118,6 +118,22 @@ RowLayout {
|
|||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
visible: false
|
visible: false
|
||||||
}
|
}
|
||||||
|
QQC2.ToolButton {
|
||||||
|
visible: Config.developerTools
|
||||||
|
icon.name: "tools"
|
||||||
|
onClicked: applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'DevtoolsPage.qml'), {
|
||||||
|
connection: root.connection
|
||||||
|
}, {
|
||||||
|
title: i18n("Developer Tools")
|
||||||
|
});
|
||||||
|
text: i18n("Open developer tools")
|
||||||
|
display: QQC2.AbstractButton.IconOnly
|
||||||
|
Layout.minimumWidth: Layout.preferredWidth
|
||||||
|
Layout.alignment: Qt.AlignRight
|
||||||
|
QQC2.ToolTip.text: text
|
||||||
|
QQC2.ToolTip.visible: hovered
|
||||||
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
|
}
|
||||||
QQC2.ToolButton {
|
QQC2.ToolButton {
|
||||||
icon.name: "settings-configure"
|
icon.name: "settings-configure"
|
||||||
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'SettingsPage.qml'), {
|
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'SettingsPage.qml'), {
|
||||||
|
|||||||
Reference in New Issue
Block a user