Fix QmlInspector to work properly now that QmlProjectManager

no longer uses LocalAppRunConfiguration. QmlInspector now uses
the qmlviewer started by QmlProjectManager instead of starting
its own, and clicking the Start Debug button within a QML
project will switch to QML Inspect mode and start the inspector.
This commit is contained in:
Bea Lam
2009-12-18 15:32:36 +10:00
parent 6ca55f201f
commit 200a03ed20
9 changed files with 54 additions and 385 deletions

View File

@@ -62,12 +62,7 @@ class QmlInspectorMode : public Core::BaseMode
public:
QmlInspectorMode(QObject *parent = 0);
quint16 viewerPort() const;
signals:
void startViewer();
void stopViewer();
void statusMessage(const QString &text);
public slots:
@@ -84,20 +79,12 @@ private slots:
void treeObjectActivated(const QmlDebugObjectReference &obj);
private:
struct Actions {
QAction *startAction;
QAction *stopAction;
};
void initActions();
QWidget *createModeWindow();
QWidget *createMainView();
void initWidgets();
QWidget *createBottomWindow();
QToolButton *createToolButton(QAction *action);
Actions m_actions;
QmlDebugConnection *m_conn;
QmlEngineDebug *m_client;
@@ -111,8 +98,6 @@ private:
CanvasFrameRate *m_frameRateWidget;
ExpressionQueryWidget *m_expressionWidget;
QLineEdit *m_addressEdit;
QSpinBox *m_portSpinBox;
EngineSpinBox *m_engineSpinBox;
};