ExtensionSystem::PluginView Class
class ExtensionSystem::PluginViewPluginView 类实现了一个小部件,用于显示所有插件及其状态的列表。更多...
| Header: | #include <extensionsystem/pluginview.h> |
公共函数
| PluginView(QWidget *parent = nullptr) | |
| ExtensionSystem::PluginSpec * | currentPlugin() const |
| void | setFilter(const QString &filter) |
信号
| void | currentPluginChanged(ExtensionSystem::PluginSpec *spec) |
| void | pluginActivated(ExtensionSystem::PluginSpec *spec) |
| void | pluginsChanged(const QSet<ExtensionSystem::PluginSpec *> &spec, bool enabled) |
另请参阅 ExtensionSystem::PluginDetailsView 和ExtensionSystem::PluginErrorView 。
成员函数文档
[explicit] PluginView::PluginView(QWidget *parent = nullptr)
使用 `parent ` 构建一个插件视图,用于显示来自插件管理器的插件列表。
ExtensionSystem::PluginSpec *PluginView::currentPlugin() const
返回插件列表中的当前选中项。
[signal] void PluginView::currentPluginChanged(ExtensionSystem::PluginSpec *spec)
插件列表中的当前选中项已切换为对应于spec 的插件。
[signal] void PluginView::pluginActivated(ExtensionSystem::PluginSpec *spec)
与“spec ”对应的插件列表条目已被激活,例如通过双击。
[signal] void PluginView::pluginsChanged(const QSet<ExtensionSystem::PluginSpec *> &spec, bool enabled)
与spec 对应的插件列表条目中,enabled 的值已发生变化。
void PluginView::setFilter(const QString &filter)
设置用于列出插件的filter 。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.