mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-11 05:31:58 +02:00
Support debug mode for QML UI in debug builds
This commit is contained in:
parent
ae6cba85e8
commit
3e7f29a0aa
1 changed files with 5 additions and 0 deletions
|
@ -238,7 +238,12 @@ void OffscreenUi::createDesktop(const QUrl& url) {
|
|||
qDebug() << "Desktop already created";
|
||||
return;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
getRootContext()->setContextProperty("DebugQML", QVariant(true));
|
||||
#else
|
||||
getRootContext()->setContextProperty("DebugQML", QVariant(false));
|
||||
#endif
|
||||
|
||||
_desktop = dynamic_cast<QQuickItem*>(load(url));
|
||||
Q_ASSERT(_desktop);
|
||||
getRootContext()->setContextProperty("desktop", _desktop);
|
||||
|
|
Loading…
Reference in a new issue