Commit 1ed42339 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

QmlJSDebugger: Don't create the tool box when compiling for a device

parent a5d3fcbc
......@@ -62,7 +62,6 @@ public:
QDeclarativeView *declarativeView();
QToolBar *toolBar() const;
static QString idStringForObject(QObject *obj);
QRectF adjustToScreenBoundaries(const QRectF &boundingRectInSceneSpace);
......
......@@ -132,7 +132,9 @@ QDeclarativeViewObserver::QDeclarativeViewObserver(QDeclarativeView *view, QObje
connect(data->subcomponentEditorTool, SIGNAL(contextPathChanged(QStringList)),
data->debugService, SLOT(contextPathUpdated(QStringList)));
#if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_MAEMO_5)
data->createToolBox();
#endif
data->_q_changeToSingleSelectTool();
}
......@@ -454,7 +456,8 @@ void QDeclarativeViewObserver::setDesignModeBehavior(bool value)
{
emit designModeBehaviorChanged(value);
data->toolBar->setDesignModeBehavior(value);
if (data->toolBar)
data->toolBar->setDesignModeBehavior(value);
data->debugService->setDesignModeBehavior(value);
data->designModeBehavior = value;
......@@ -848,11 +851,6 @@ QRectF QDeclarativeViewObserver::adjustToScreenBoundaries(const QRectF &bounding
return boundingRect;
}
QToolBar *QDeclarativeViewObserver::toolBar() const
{
return data->toolBar;
}
void QDeclarativeViewObserverPrivate::createToolBox()
{
toolBar = new QmlToolBar;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment