QmlJSDebugger: Disabled the Qt Quick tool box entirely for now

This tool box doesn't add much value since the same actions are
available from Qt Creator and in the case of using the Observer, some
actions are also available from its menus.

Reviewed-by: Kai Koehne
This commit is contained in:
Thorbjørn Lindeijer
2011-03-23 17:24:07 +01:00
parent 869122d629
commit 6161d0eb0c

View File

@@ -136,8 +136,9 @@ QDeclarativeViewObserver::QDeclarativeViewObserver(QDeclarativeView *view, QObje
data->debugService = QDeclarativeObserverService::instance(); data->debugService = QDeclarativeObserverService::instance();
connect(data->debugService, SIGNAL(debuggingClientChanged(bool)), // tool box is disabled
data.data(), SLOT(_q_setToolBoxVisible(bool))); //connect(data->debugService, SIGNAL(debuggingClientChanged(bool)),
// data.data(), SLOT(_q_setToolBoxVisible(bool)));
connect(data->debugService, SIGNAL(designModeBehaviorChanged(bool)), connect(data->debugService, SIGNAL(designModeBehaviorChanged(bool)),
SLOT(setDesignModeBehavior(bool))); SLOT(setDesignModeBehavior(bool)));
@@ -205,6 +206,8 @@ void QDeclarativeViewObserverPrivate::_q_setToolBoxVisible(bool visible)
createToolBox(); createToolBox();
if (toolBox) if (toolBox)
toolBox->setVisible(visible); toolBox->setVisible(visible);
#else
Q_UNUSED(visible)
#endif #endif
} }