forked from qt-creator/qt-creator
Support 'hidden' plugins
Plugins can be hidden in the "About Plugins" view by default. Users can still make them all visible, but the default view can be made less noisy by hiding plugins that only exist as a base for other plugins. Plugins that can not run on the current platform are hidden by default as well. Change-Id: Iaf2f751c4ea4b3afc605bbbea6611eea042e62c7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -45,8 +45,9 @@ class PluginManager;
|
||||
class PluginSpec;
|
||||
|
||||
namespace Internal {
|
||||
class PluginItem;
|
||||
class CollectionItem;
|
||||
class PluginFilterModel;
|
||||
class PluginItem;
|
||||
} // Internal
|
||||
|
||||
class EXTENSIONSYSTEM_EXPORT PluginView : public QWidget
|
||||
@@ -59,6 +60,8 @@ public:
|
||||
|
||||
PluginSpec *currentPlugin() const;
|
||||
void setFilter(const QString &filter);
|
||||
void setShowHidden(bool showHidden);
|
||||
bool isShowingHidden() const;
|
||||
|
||||
signals:
|
||||
void currentPluginChanged(ExtensionSystem::PluginSpec *spec);
|
||||
@@ -72,7 +75,7 @@ private:
|
||||
|
||||
Utils::TreeView *m_categoryView;
|
||||
Utils::TreeModel<Utils::TreeItem, Internal::CollectionItem, Internal::PluginItem> *m_model;
|
||||
QSortFilterProxyModel *m_sortModel;
|
||||
Internal::PluginFilterModel *m_sortModel;
|
||||
|
||||
friend class Internal::CollectionItem;
|
||||
friend class Internal::PluginItem;
|
||||
|
||||
Reference in New Issue
Block a user