aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cpptypehierarchy.h
diff options
context:
space:
mode:
authorOrgad Shaneh <orgads@gmail.com>2012-08-09 23:19:09 +0300
committerLeandro Melo <leandro.melo@nokia.com>2012-08-28 15:52:58 +0200
commit8ed9720cd1afa60f3086f9fa3457a15ff963d246 (patch)
treec9dfa6b483fb7f27e39bc739ac0bd4e709db5d08 /src/plugins/cppeditor/cpptypehierarchy.h
parentf555c936a440133aa5d537b396af47e4917bd4aa (diff)
TypeHierarchy: Invert bases order
Current display doesn't make sense (to me :)) Active class is the middle one, derived classes should be top-down, but base classes should be bottom-up. That's easier to understand. Change-Id: I06693da37c834f5a99fd62ae29a91d958bafe136 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Diffstat (limited to 'src/plugins/cppeditor/cpptypehierarchy.h')
-rw-r--r--src/plugins/cppeditor/cpptypehierarchy.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cpptypehierarchy.h b/src/plugins/cppeditor/cpptypehierarchy.h
index d9c5e8d941..2d862d6904 100644
--- a/src/plugins/cppeditor/cpptypehierarchy.h
+++ b/src/plugins/cppeditor/cpptypehierarchy.h
@@ -43,6 +43,7 @@ class QStandardItem;
class QModelIndex;
class QLabel;
template <class> class QVector;
+template <class> class QList;
QT_END_NAMESPACE
namespace Core {
@@ -77,8 +78,8 @@ private slots:
void onItemClicked(const QModelIndex &index);
private:
- void buildDerivedHierarchy(const CppClass &cppClass, QStandardItem *parent);
- void buildBaseHierarchy(QVector<CppClass> *s);
+ typedef const QList<CppClass> &(CppClass::* HierarchyFunc)() const;
+ void buildHierarchy(const CppClass &cppClass, QStandardItem *parent, bool isRoot, HierarchyFunc func);
CPPEditorWidget *m_cppEditor;
Utils::NavigationTreeView *m_treeView;