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:
James Graham
2024-03-10 10:55:05 +00:00
parent 93426546ad
commit 7654b83339
4 changed files with 18 additions and 21 deletions

View File

@@ -118,6 +118,22 @@ RowLayout {
Layout.alignment: Qt.AlignRight
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 {
icon.name: "settings-configure"
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'SettingsPage.qml'), {