mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix focus hack. Add QML debug info
This commit is contained in:
parent
6411d1b35b
commit
f2ce3d0268
3 changed files with 5 additions and 1 deletions
|
@ -21,4 +21,6 @@ FocusScope {
|
||||||
onActiveFocusChanged: root.destroy()
|
onActiveFocusChanged: root.destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ Item {
|
||||||
Text {
|
Text {
|
||||||
id: debugZ
|
id: debugZ
|
||||||
visible: DebugQML
|
visible: DebugQML
|
||||||
text: window ? "Z: " + window.z : ""
|
text: (window ? "Z: " + window.z : "") + DebugQMLFile
|
||||||
y: window ? window.height + 4 : 0
|
y: window ? window.height + 4 : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -658,8 +658,10 @@ void OffscreenUi::createDesktop(const QUrl& url) {
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
getSurfaceContext()->setContextProperty("DebugQML", QVariant(true));
|
getSurfaceContext()->setContextProperty("DebugQML", QVariant(true));
|
||||||
|
getSurfaceContext()->setContextProperty("DebugQMLFile", QVariant(url.toString()));
|
||||||
#else
|
#else
|
||||||
getSurfaceContext()->setContextProperty("DebugQML", QVariant(false));
|
getSurfaceContext()->setContextProperty("DebugQML", QVariant(false));
|
||||||
|
getSurfaceContext()->setContextProperty("DebugQMLFile", QVariant(""));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
load(url, [=](QQmlContext* context, QObject* newObject) {
|
load(url, [=](QQmlContext* context, QObject* newObject) {
|
||||||
|
|
Loading…
Reference in a new issue