forked from qt-creator/qt-creator
CppEditor: Don't show 'generated' symbols in the outline
Don't show e.g. all the methods that are defined by the Q_OBJECT macro in the outline. We skip these by checking for Symbol->isGenerated in the two proxy models used.
This commit is contained in:
@@ -22,10 +22,12 @@ class CppOutlineFilterModel : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CppOutlineFilterModel(QObject *parent);
|
||||
CppOutlineFilterModel(CPlusPlus::OverviewModel *sourceModel, QObject *parent);
|
||||
// QSortFilterProxyModel
|
||||
bool filterAcceptsRow(int sourceRow,
|
||||
const QModelIndex &sourceParent) const;
|
||||
private:
|
||||
CPlusPlus::OverviewModel *m_sourceModel;
|
||||
};
|
||||
|
||||
class CppOutlineWidget : public TextEditor::IOutlineWidget
|
||||
|
||||
Reference in New Issue
Block a user