Na této stránce

ExtensionSystem::PluginView Class

class ExtensionSystem::PluginView

Třída PluginView implementuje widget, který zobrazuje seznam všech pluginů a jejich stav. Více...

Header: #include <extensionsystem/pluginview.h>

Veřejné funkce

PluginView(QWidget *parent = nullptr)
ExtensionSystem::PluginSpec *currentPlugin() const
void setFilter(const QString &filter)

Signály

void currentPluginChanged(ExtensionSystem::PluginSpec *spec)
void pluginActivated(ExtensionSystem::PluginSpec *spec)
void pluginsChanged(const QSet<ExtensionSystem::PluginSpec *> &spec, bool enabled)

Podrobný popis

Tuto třídu lze například vložit do dialogového okna v aplikaci, která využívá správce pluginů. Třída také poskytuje oznámení pro interakci se seznamem.

Viz také ExtensionSystem::PluginDetailsView a ExtensionSystem::PluginErrorView.

Dokumentace členských funkcí

[explicit] PluginView::PluginView(QWidget *parent = nullptr)

Vytvoří zobrazení pluginů pomocí funkce ` parent `, které zobrazuje seznam pluginů ze správce pluginů.

ExtensionSystem::PluginSpec *PluginView::currentPlugin() const

Vrátí aktuální výběr v seznamu pluginů.

[signal] void PluginView::currentPluginChanged(ExtensionSystem::PluginSpec *spec)

Aktuální výběr v seznamu pluginů se změnil na plugin odpovídající adrese spec.

[signal] void PluginView::pluginActivated(ExtensionSystem::PluginSpec *spec)

Položka v seznamu pluginů odpovídající souboru spec byla aktivována, například dvojitým kliknutím.

[signal] void PluginView::pluginsChanged(const QSet<ExtensionSystem::PluginSpec *> &spec, bool enabled)

Hodnota „ enabled “ u položky v seznamu pluginů odpovídající adrese spec se změnila.

void PluginView::setFilter(const QString &filter)

Nastaví hodnotu ` filter ` pro zobrazení seznamu pluginů.

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.