From 4c5ee0c02b5d87aa596913f8c0a7f0e27bf8ff8d Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 5 Jul 2016 17:44:34 +0200 Subject: [PATCH] ExtensionSystem: Fix PluginView model level types LeveledTreeView lately names its RootItem type explicitly, the PluginView model was not adapted, but still compilable (and not harmed otherwise) as the types of first level were never used. Change-Id: If64d609581782be86068d64e5a8f14f4418fb95b Reviewed-by: Eike Ziller --- src/libs/extensionsystem/pluginview.cpp | 2 +- src/libs/extensionsystem/pluginview.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/extensionsystem/pluginview.cpp b/src/libs/extensionsystem/pluginview.cpp index e86f98665bb..2dea6e1b251 100644 --- a/src/libs/extensionsystem/pluginview.cpp +++ b/src/libs/extensionsystem/pluginview.cpp @@ -314,7 +314,7 @@ PluginView::PluginView(QWidget *parent) m_categoryView->setSelectionMode(QAbstractItemView::SingleSelection); m_categoryView->setSelectionBehavior(QAbstractItemView::SelectRows); - m_model = new LeveledTreeModel(this); + m_model = new LeveledTreeModel(this); m_model->setHeader({ tr("Name"), tr("Load"), tr("Version"), tr("Vendor") }); m_sortModel = new CategorySortFilterModel(this); diff --git a/src/libs/extensionsystem/pluginview.h b/src/libs/extensionsystem/pluginview.h index 01e3dc45241..90016f529c7 100644 --- a/src/libs/extensionsystem/pluginview.h +++ b/src/libs/extensionsystem/pluginview.h @@ -71,7 +71,7 @@ private: bool setPluginsEnabled(const QSet &plugins, bool enable); Utils::TreeView *m_categoryView; - Utils::LeveledTreeModel *m_model; + Utils::LeveledTreeModel *m_model; QSortFilterProxyModel *m_sortModel; friend class Internal::CollectionItem;