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 "Base"
import "utils.js" as Utils
import "utils.js" as U
HDrawer {
id: debugConsole
@ -10,8 +11,8 @@ HDrawer {
x: horizontal ? 0 : referenceSizeParent.width / 2 - width / 2
y: vertical ? 0 : referenceSizeParent.height / 2 - height / 2
width: horizontal ? calculatedSize : Math.min(window.width, 720)
height: vertical ? calculatedSize : Math.min(window.width, 480)
normalSize: 360
height: vertical ? calculatedSize : Math.min(window.height, 720)
normalSize: 400
z: 9999
position: 0
@ -25,7 +26,11 @@ HDrawer {
property string help: qsTr(
`Javascript debugging console
Special variables:
Useful variables:
window, theme, settings, shortcuts, mainUI, pageLoader
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