diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-12-18 15:39:48 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2021-01-07 14:58:06 +0000 |
commit | 936b63b4fcfd1c22f15fcf01d67933f8e0e9fc06 (patch) | |
tree | 08dadb1dd560fcc9d347ce17c3c06647ed16cf31 /src/plugins/cppeditor/cpptypehierarchy.h | |
parent | f82692cc7f6285ea836a819191b4fcde91bef52d (diff) |
Highlight old item after activating new class in type hierarchy
Highlight the old visible class after double click on a new
class in type hierarchy editor. Don't do that when
opening type hierarchy from cpp editor.
Change-Id: Ie9a1131cba9b5a35ab826909b994555188aaceb7
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cpptypehierarchy.h')
-rw-r--r-- | src/plugins/cppeditor/cpptypehierarchy.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/cpptypehierarchy.h b/src/plugins/cppeditor/cpptypehierarchy.h index 8972bea746..a8c6a1745b 100644 --- a/src/plugins/cppeditor/cpptypehierarchy.h +++ b/src/plugins/cppeditor/cpptypehierarchy.h @@ -85,8 +85,8 @@ private slots: private: typedef QList<CppTools::CppClass> CppTools::CppClass::*HierarchyMember; void performFromExpression(const QString &expression, const QString &fileName); - void buildHierarchy(const CppTools::CppClass &cppClass, QStandardItem *parent, - bool isRoot, HierarchyMember member); + QStandardItem *buildHierarchy(const CppTools::CppClass &cppClass, QStandardItem *parent, + bool isRoot, HierarchyMember member); void showNoTypeHierarchyLabel(); void showTypeHierarchy(); void showProgress(); @@ -108,6 +108,8 @@ private: QFutureWatcher<void> m_futureWatcher; QFutureSynchronizer<void> m_synchronizer; Utils::ProgressIndicator *m_progressIndicator = nullptr; + QString m_oldClass; + bool m_showOldClass = false; }; class CppTypeHierarchyFactory : public Core::INavigationWidgetFactory |