forked from qt-creator/qt-creator
Clang: Use more generic methods in OverviewModel
Do not return Document or Symbol. Instead use Link or LineColumn directly as return values. Change-Id: I1863d7c3b4985ffe2ae5454622227075ebdc2de7 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
#include <QModelIndex>
|
||||
#include <QObject>
|
||||
|
||||
#include <memory>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAction;
|
||||
class QSortFilterProxyModel;
|
||||
@@ -77,10 +79,12 @@ private:
|
||||
const QModelIndex &rootIndex = QModelIndex()) const;
|
||||
|
||||
private:
|
||||
QSharedPointer<CPlusPlus::Document> m_document;
|
||||
std::unique_ptr<AbstractOverviewModel> m_model;
|
||||
|
||||
TextEditor::TextEditorWidget *m_editorWidget;
|
||||
|
||||
Utils::TreeViewComboBox *m_combo; // Not owned
|
||||
AbstractOverviewModel *m_model;
|
||||
QSortFilterProxyModel *m_proxyModel;
|
||||
QModelIndex m_modelIndex;
|
||||
QAction *m_sortAction;
|
||||
|
||||
Reference in New Issue
Block a user