forked from qt-creator/qt-creator
QmlJSDebugger: Rename QDDesignServer to QDObserverService
The class extends the QDDebugService class, _not_ QDDebugServer. It's right that there is also a QDEngineDebugServer being actually a service in QtDeclarative, but we should probably fix this one too.
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
#endif
|
||||
|
||||
#include <qdeclarativeviewobserver.h>
|
||||
#include <qdeclarativedesigndebugserver.h>
|
||||
#include <qdeclarativeobserverservice.h>
|
||||
#include <utils/crumblepath.h>
|
||||
|
||||
#include "qmlruntime.h"
|
||||
@@ -794,10 +794,10 @@ void QDeclarativeViewer::createMenu()
|
||||
designModeBehaviorAction->setShortcut(QKeySequence("Ctrl+D"));
|
||||
designModeBehaviorAction->setCheckable(true);
|
||||
designModeBehaviorAction->setChecked(observer->designModeBehavior());
|
||||
designModeBehaviorAction->setEnabled(QDeclarativeDesignDebugServer::hasDebuggingClient());
|
||||
designModeBehaviorAction->setEnabled(QDeclarativeObserverService::hasDebuggingClient());
|
||||
connect(designModeBehaviorAction, SIGNAL(triggered(bool)), this, SLOT(setDesignModeBehavior(bool)));
|
||||
connect(observer, SIGNAL(designModeBehaviorChanged(bool)), designModeBehaviorAction, SLOT(setChecked(bool)));
|
||||
connect(QDeclarativeDesignDebugServer::instance(), SIGNAL(debuggingClientChanged(bool)), designModeBehaviorAction, SLOT(setEnabled(bool)));
|
||||
connect(QDeclarativeObserverService::instance(), SIGNAL(debuggingClientChanged(bool)), designModeBehaviorAction, SLOT(setEnabled(bool)));
|
||||
|
||||
QAction *proxyAction = new QAction(tr("HTTP &Proxy..."), this);
|
||||
connect(proxyAction, SIGNAL(triggered()), this, SLOT(showProxySettings()));
|
||||
|
Reference in New Issue
Block a user