The sections in one slot of one page, as ApplicationController:: extensionsFor() lists them, for ExtensionSlot's Repeater. More...
#include <PhosphorControl/ExtensionSlotModel.h>
Public Types | |
| enum | Role { ExtensionIdRole = Qt::UserRole + 1 , ModuleIdRole , ModuleNameRole , NameRole , ModulePageIdRole , QmlSourceRole , DomainRole , FailedRole , ModuleFailedRole , DisabledAfterCrashRole , ErrorRole } |
Signals | |
| void | settingsAppChanged () |
| void | pageIdChanged () |
| void | slotIdChanged () |
| void | countChanged () |
Public Member Functions | |
| ExtensionSlotModel (QObject *parent=nullptr) | |
| ApplicationController * | settingsApp () const |
| void | setSettingsApp (ApplicationController *settingsApp) |
| QString | pageId () const |
| void | setPageId (const QString &pageId) |
| QString | slotId () const |
| void | setSlotId (const QString &slot) |
| int | count () const |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| QHash< int, QByteArray > | roleNames () const override |
The sections in one slot of one page, as ApplicationController:: extensionsFor() lists them, for ExtensionSlot's Repeater.
It reads the list again whenever settingsApp, pageId or slot change, and on extensionsChanged for its page. Rows are matched by extension id, so a section that stays keeps its delegate, and its loaded QML, while others come, go or change state.
|
explicit |
| int PhosphorControl::ExtensionSlotModel::count | ( | ) | const |
|
signal |
|
override |
| QString PhosphorControl::ExtensionSlotModel::pageId | ( | ) | const |
|
signal |
|
override |
|
override |
| void PhosphorControl::ExtensionSlotModel::setPageId | ( | const QString & | pageId | ) |
| void PhosphorControl::ExtensionSlotModel::setSettingsApp | ( | ApplicationController * | settingsApp | ) |
| void PhosphorControl::ExtensionSlotModel::setSlotId | ( | const QString & | slot | ) |
| ApplicationController * PhosphorControl::ExtensionSlotModel::settingsApp | ( | ) | const |
|
signal |
| QString PhosphorControl::ExtensionSlotModel::slotId | ( | ) | const |
|
signal |