Improve console size, add variables info

This commit is contained in:
miruka 2019-12-09 12:56:25 -04:00
parent f5b0cbb204
commit 6e6fa0ad35

View File

@ -3,6 +3,7 @@ import QtQuick.Window 2.12
import QtQuick.Layouts 1.12 import QtQuick.Layouts 1.12
import "Base" import "Base"
import "utils.js" as Utils import "utils.js" as Utils
import "utils.js" as U
HDrawer { HDrawer {
id: debugConsole id: debugConsole
@ -10,8 +11,8 @@ HDrawer {
x: horizontal ? 0 : referenceSizeParent.width / 2 - width / 2 x: horizontal ? 0 : referenceSizeParent.width / 2 - width / 2
y: vertical ? 0 : referenceSizeParent.height / 2 - height / 2 y: vertical ? 0 : referenceSizeParent.height / 2 - height / 2
width: horizontal ? calculatedSize : Math.min(window.width, 720) width: horizontal ? calculatedSize : Math.min(window.width, 720)
height: vertical ? calculatedSize : Math.min(window.width, 480) height: vertical ? calculatedSize : Math.min(window.height, 720)
normalSize: 360 normalSize: 400
z: 9999 z: 9999
position: 0 position: 0
@ -25,9 +26,13 @@ HDrawer {
property string help: qsTr( property string help: qsTr(
`Javascript debugging console `Javascript debugging console
Special variables: Useful variables:
t Target item to debug for which this console was opened window, theme, settings, shortcuts, mainUI, pageLoader
his History, list of commands entered py Python interpreter
U Utils/utils.js module
this The console itself
t Target item to debug for which this console was opened
his History, list of commands entered
Special commands: Special commands:
.j OBJECT, .json OBJECT Print OBJECT as human-readable JSON .j OBJECT, .json OBJECT Print OBJECT as human-readable JSON