forked from qt-creator/qt-creator
QML Debugger refactoring
Now, QmlEngine creates the connection to the inferior (debuggee), and notifies QmlInspector when a connection is established. Before, inspector created the debugger engin, which was wrong. QmlEngine's responsibilities are connecting to the debuggee and basic QML/JS debugging features like locals & watchers, breakpoints etc. QmlInspector takes care of Live Preview and other fancy inspection features. Reviewed-by: hjk
This commit is contained in:
@@ -56,12 +56,17 @@ namespace Internal {
|
||||
namespace QmlJSInspector {
|
||||
namespace Internal {
|
||||
|
||||
class ClientProxy;
|
||||
|
||||
class QmlJSLiveTextPreview : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit QmlJSLiveTextPreview(const QmlJS::Document::Ptr &doc, const QmlJS::Document::Ptr &initDoc, QObject *parent = 0);
|
||||
explicit QmlJSLiveTextPreview(const QmlJS::Document::Ptr &doc,
|
||||
const QmlJS::Document::Ptr &initDoc,
|
||||
ClientProxy *clientProxy,
|
||||
QObject *parent = 0);
|
||||
//void updateDocuments();
|
||||
|
||||
void associateEditor(Core::IEditor *editor);
|
||||
@@ -70,6 +75,8 @@ public:
|
||||
void mapObjectToQml(const QDeclarativeDebugObjectReference &object);
|
||||
void resetInitialDoc(const QmlJS::Document::Ptr &doc);
|
||||
|
||||
void setClientProxy(ClientProxy *clientProxy);
|
||||
|
||||
enum UnsyncronizableChangeType {
|
||||
NoUnsyncronizableChanges,
|
||||
AttributeChangeWarning,
|
||||
@@ -111,6 +118,7 @@ private:
|
||||
|
||||
bool m_applyChangesToQmlObserver;
|
||||
QmlJS::Document::Ptr m_docWithUnappliedChanges;
|
||||
QWeakPointer<ClientProxy> m_clientProxy;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user