#include <AddonsModel.hxx>
Inherits QAbstractListModel.
|
| enum | AddonRoles {
IdRole = Qt::UserRole + 1
, NameRole
, PathRole
, VersionRole
,
AuthorsRole
, MaintainersRole
, ShortDescriptionRole
, LongDescriptionRole
,
LicenseDesignationRole
, LicenseUrlRole
, TagsRole
, MinFGVersionRole
,
MaxFGVersionRole
, HomePageRole
, DownloadUrlRole
, SupportUrlRole
,
CodeRepoUrlRole
, EnableRole
} |
| |
|
| | AddonsModel (QObject *pr) |
| |
| | ~AddonsModel () |
| |
| int | rowCount (const QModelIndex &parent) const override |
| |
| QVariant | data (const QModelIndex &index, int role) const override |
| |
| Q_INVOKABLE QVariant | get (int index, int role) const |
| |
| Q_INVOKABLE QVariant | get (int index, QString role) const |
| |
| bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
| QHash< int, QByteArray > | roleNames () const override |
| |
| bool | append (QString path, flightgear::addons::AddonRef &addon, bool enable) |
| |
| void | resetData (const QStringList &ndata) |
| |
| Q_INVOKABLE bool | checkVersion (QString path) const |
| |
| bool | getPathEnable (const QString &path) |
| |
| bool | containsPath (const QString &path) |
| |
| Q_INVOKABLE void | enable (int index, bool enable) |
| |
Definition at line 38 of file AddonsModel.hxx.
◆ AddonRoles
| Enumerator |
|---|
| IdRole | |
| NameRole | |
| PathRole | |
| VersionRole | |
| AuthorsRole | |
| MaintainersRole | |
| ShortDescriptionRole | |
| LongDescriptionRole | |
| LicenseDesignationRole | |
| LicenseUrlRole | |
| TagsRole | |
| MinFGVersionRole | |
| MaxFGVersionRole | |
| HomePageRole | |
| DownloadUrlRole | |
| SupportUrlRole | |
| CodeRepoUrlRole | |
| EnableRole | |
Definition at line 74 of file AddonsModel.hxx.
◆ AddonsModel()
| AddonsModel::AddonsModel |
( |
QObject * | pr | ) |
|
◆ ~AddonsModel()
| AddonsModel::~AddonsModel |
( |
| ) |
|
◆ append()
◆ checkVersion()
| bool AddonsModel::checkVersion |
( |
QString | path | ) |
const |
◆ containsPath()
| bool AddonsModel::containsPath |
( |
const QString & | path | ) |
|
|
inline |
◆ data()
| QVariant AddonsModel::data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
override |
◆ enable()
| void AddonsModel::enable |
( |
int | index, |
|
|
bool | enable ) |
◆ flags()
| Qt::ItemFlags AddonsModel::flags |
( |
const QModelIndex & | index | ) |
const |
|
override |
◆ get() [1/2]
| QVariant AddonsModel::get |
( |
int | index, |
|
|
int | role ) const |
◆ get() [2/2]
| QVariant AddonsModel::get |
( |
int | index, |
|
|
QString | role ) const |
◆ getPathEnable()
| bool AddonsModel::getPathEnable |
( |
const QString & | path | ) |
|
|
inline |
◆ modulesChanged
| void AddonsModel::modulesChanged |
( |
| ) |
|
|
signal |
◆ resetData()
| void AddonsModel::resetData |
( |
const QStringList & | ndata | ) |
|
◆ roleNames()
| QHash< int, QByteArray > AddonsModel::roleNames |
( |
| ) |
const |
|
override |
◆ rowCount()
| int AddonsModel::rowCount |
( |
const QModelIndex & | parent | ) |
const |
|
override |
◆ setData()
| bool AddonsModel::setData |
( |
const QModelIndex & | index, |
|
|
const QVariant & | value, |
|
|
int | role ) |
|
override |
The documentation for this class was generated from the following files: