ExtensionSystem::PluginView Class
class ExtensionSystem::PluginViewKlasa PluginView implementuje widżet wyświetlający listę wszystkich wtyczek wraz z ich stanem. Więcej...
| Header: | #include <extensionsystem/pluginview.h> |
Funkcje publiczne
| PluginView(QWidget *parent = nullptr) | |
| ExtensionSystem::PluginSpec * | currentPlugin() const |
| void | setFilter(const QString &filter) |
Sygnały
| void | currentPluginChanged(ExtensionSystem::PluginSpec *spec) |
| void | pluginActivated(ExtensionSystem::PluginSpec *spec) |
| void | pluginsChanged(const QSet<ExtensionSystem::PluginSpec *> &spec, bool enabled) |
Szczegółowy opis
Klasę tę można osadzić na przykład w oknie dialogowym aplikacji korzystającej z menedżera wtyczek. Klasa udostępnia również powiadomienia dotyczące interakcji z listą.
Zobacz także ExtensionSystem::PluginDetailsView oraz ExtensionSystem::PluginErrorView.
Dokumentacja funkcji składowych
[explicit] PluginView::PluginView(QWidget *parent = nullptr)
Tworzy widok wtyczek przy użyciu metody ` parent `, który wyświetla listę wtyczek z menedżera wtyczek.
ExtensionSystem::PluginSpec *PluginView::currentPlugin() const
Zwraca bieżący wybór z listy wtyczek.
[signal] void PluginView::currentPluginChanged(ExtensionSystem::PluginSpec *spec)
Aktualnie zaznaczona pozycja na liście wtyczek została zmieniona na wtyczkę odpowiadającą adresowi spec.
[signal] void PluginView::pluginActivated(ExtensionSystem::PluginSpec *spec)
Pozycja na liście wtyczek odpowiadająca spec została aktywowana, na przykład poprzez dwukrotne kliknięcie.
[signal] void PluginView::pluginsChanged(const QSet<ExtensionSystem::PluginSpec *> &spec, bool enabled)
Zmieniono wartość parametru „ enabled ” dla pozycji na liście wtyczek odpowiadającej adresowi spec.
void PluginView::setFilter(const QString &filter)
Ustawia wartość „ filter ” dla wyświetlania listy wtyczek.
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.