Change-Id: Ie9704233012b0bd0e473c5ee6011e6382c61900f
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
engine.setIncubationController(q->incubationController());
- QDeclarativeInspectorService::instance()->addView(q);
+ if (QDeclarativeDebugService::isDebuggingEnabled())
+ QDeclarativeInspectorService::instance()->addView(q);
}
QSGViewPrivate::QSGViewPrivate()
QSGViewPrivate::~QSGViewPrivate()
{
- QDeclarativeInspectorService::instance()->removeView(q_func());
+ if (QDeclarativeDebugService::isDebuggingEnabled())
+ QDeclarativeInspectorService::instance()->removeView(q_func());
delete root;
}
q->viewport()->setAttribute(Qt::WA_NoSystemBackground);
#endif
- QDeclarativeInspectorService::instance()->addView(q);
+ if (QDeclarativeDebugService::isDebuggingEnabled())
+ QDeclarativeInspectorService::instance()->addView(q);
}
/*!
*/
QDeclarativeView::~QDeclarativeView()
{
- QDeclarativeInspectorService::instance()->removeView(this);
+ if (QDeclarativeDebugService::isDebuggingEnabled())
+ QDeclarativeInspectorService::instance()->removeView(this);
}
/*! \property QDeclarativeView::source