forked from qt-creator/qt-creator
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:
@@ -38,14 +38,12 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
class QStringList;
|
||||
|
||||
|
||||
class QmlInspectorRunControlFactory;
|
||||
class QmlInspectorMode;
|
||||
class InspectorOutputPane;
|
||||
|
||||
namespace ProjectExplorer
|
||||
namespace Core
|
||||
{
|
||||
class RunControl;
|
||||
class IMode;
|
||||
}
|
||||
|
||||
class QmlInspectorPlugin : public ExtensionSystem::IPlugin
|
||||
@@ -61,15 +59,11 @@ public:
|
||||
virtual void shutdown();
|
||||
|
||||
private slots:
|
||||
void startViewer();
|
||||
void stopViewer();
|
||||
void currentModeChanged(Core::IMode *mode);
|
||||
|
||||
private:
|
||||
QmlInspectorMode *m_inspectMode;
|
||||
InspectorOutputPane *m_outputPane;
|
||||
|
||||
QmlInspectorRunControlFactory *m_runControlFactory;
|
||||
QPointer<ProjectExplorer::RunControl> m_runControl;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user