forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user