OSDN Git Service

QmlJSDebugger: Disabled the Qt Quick tool box entirely for now
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Wed, 23 Mar 2011 16:24:07 +0000 (17:24 +0100)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
Wed, 23 Mar 2011 16:37:58 +0000 (17:37 +0100)
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
share/qtcreator/qml/qmljsdebugger/qdeclarativeviewobserver.cpp

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