Improve console size, add variables info
This commit is contained in:
parent
f5b0cbb204
commit
6e6fa0ad35
|
@ -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,7 +26,11 @@ HDrawer {
|
||||||
property string help: qsTr(
|
property string help: qsTr(
|
||||||
`Javascript debugging console
|
`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
|
t Target item to debug for which this console was opened
|
||||||
his History, list of commands entered
|
his History, list of commands entered
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user