Add icon for "Open developer tools" under Settings, add separator
It makes it look a little bit nicer, I think.
This commit is contained in:
@@ -256,6 +256,7 @@ FormCard.FormCardPage {
|
|||||||
}
|
}
|
||||||
FormCard.FormCard {
|
FormCard.FormCard {
|
||||||
FormCard.FormCheckDelegate {
|
FormCard.FormCheckDelegate {
|
||||||
|
id: enableDeveloperToolsDelegate
|
||||||
text: i18n("Enable developer tools")
|
text: i18n("Enable developer tools")
|
||||||
checked: NeoChatConfig.developerTools
|
checked: NeoChatConfig.developerTools
|
||||||
enabled: !NeoChatConfig.isDeveloperToolsImmutable
|
enabled: !NeoChatConfig.isDeveloperToolsImmutable
|
||||||
@@ -264,8 +265,14 @@ FormCard.FormCardPage {
|
|||||||
NeoChatConfig.save();
|
NeoChatConfig.save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
FormCard.FormDelegateSeparator {
|
||||||
|
above: enableDeveloperToolsDelegate
|
||||||
|
below: openDeveloperToolsDelegate
|
||||||
|
}
|
||||||
FormCard.FormButtonDelegate {
|
FormCard.FormButtonDelegate {
|
||||||
|
id: openDeveloperToolsDelegate
|
||||||
visible: NeoChatConfig.developerTools
|
visible: NeoChatConfig.developerTools
|
||||||
|
icon.name: "tools"
|
||||||
text: i18n("Open developer tools")
|
text: i18n("Open developer tools")
|
||||||
onClicked: root.QQC2.ApplicationWindow.window.pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.devtools', 'DevtoolsPage'), {
|
onClicked: root.QQC2.ApplicationWindow.window.pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.devtools', 'DevtoolsPage'), {
|
||||||
connection: root.connection
|
connection: root.connection
|
||||||
|
|||||||
Reference in New Issue
Block a user