QML Inspector: Don't update debug id's when not debugging

Creating LookupContext seems to be expensive, so don't update anything
unless debug mode is already running.
This commit is contained in:
Lasse Holmstedt
2010-08-24 15:13:50 +02:00
parent 67365553f7
commit fe55ba5cd2
4 changed files with 44 additions and 13 deletions

View File

@@ -225,6 +225,9 @@ public:
QmlOutlineModel *outlineModel() const;
QModelIndex outlineModelIndex();
bool updateSelectedElements() const;
void setUpdateSelectedElements(bool value);
public slots:
void followSymbolUnderCursor();
void showContextPane();
@@ -309,6 +312,7 @@ private:
QmlJS::IContextPane *m_contextPane;
int m_oldCursorPosition;
bool m_updateSelectedElements;
};
} // namespace Internal