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:
Kai Koehne
2010-07-08 17:03:38 +02:00
parent 82497a9545
commit d3c4f329d7
3 changed files with 43 additions and 7 deletions

View File

@@ -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