Implement basic developer tools

This commit is contained in:
Tobias Fella
2022-11-16 22:30:28 +01:00
parent 752e7f4d9a
commit c58d8b58ff
12 changed files with 187 additions and 1 deletions

View File

@@ -93,6 +93,24 @@ Kirigami.OverlayDrawer {
text: i18n("Room information")
level: 1
}
QQC2.ToolButton {
id: devtoolsButton
Layout.alignment: Qt.AlignRight
icon.name: "tools"
text: i18n("Open developer tools")
display: QQC2.AbstractButton.IconOnly
visible: Config.developerTools && Controller.quotientMinorVersion > 6
onClicked: {
applicationWindow().pageStack.layers.push("qrc:/DevtoolsPage.qml", {room: room}, {title: i18n("Developer Tools")})
roomDrawer.close();
}
QQC2.ToolTip {
text: devtoolsButton.text
}
}
QQC2.ToolButton {
id: inviteButton