CppEditor: Reuse OverviewModel from text editor also in the outline pane

There's no use synchronizing the same model twice.
This commit is contained in:
Kai Koehne
2010-07-08 15:47:59 +02:00
parent 1430358d52
commit 2ba49e4e72
4 changed files with 19 additions and 26 deletions

View File

@@ -38,7 +38,7 @@ public:
virtual void setCursorSynchronization(bool syncWithCursor);
private slots:
void updateOutline(CPlusPlus::Document::Ptr document);
void modelUpdated();
void updateSelectionInTree();
void updateSelectionInText(const QItemSelection &selection);
@@ -52,7 +52,6 @@ private:
CppOutlineTreeView *m_treeView;
CPlusPlus::OverviewModel *m_model;
CppOutlineFilterModel *m_proxyModel;
CPlusPlus::Document::Ptr m_document;
bool m_enableCursorSync;
bool m_blockCursorSync;