BibleTime
|
#include <btinstallpagemodel.h>
Public Member Functions | |
BtInstallPageModel (Grouping const &grouping, QObject *const parent=nullptr) | |
int | columnCount (QModelIndex const &parent=QModelIndex()) const final override |
QVariant | data (QModelIndex const &index, int role=Qt::DisplayRole) const final override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const final override |
Public Member Functions inherited from BtBookshelfTreeModel | |
BtBookshelfTreeModel (BtConfigCore const &config, QString const &configKey, QObject *parent=nullptr) | |
BtBookshelfTreeModel (const Grouping &grouping, QObject *parent=nullptr) | |
BtBookshelfTreeModel (QObject *parent=nullptr) | |
bool | checkable () const |
BtModuleSet const & | checkedModules () const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
QVariant | data (CSwordModuleInfo &module, int role=Qt::DisplayRole) const |
CheckedBehavior | defaultChecked () const |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
Grouping const & | groupingOrder () const |
bool | hasChildren (const QModelIndex &parent=QModelIndex()) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
CSwordModuleInfo * | module (QModelIndex const &index) const |
QList< CSwordModuleInfo * > | modules () const |
QModelIndex | parent (const QModelIndex &index) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
std::shared_ptr< QAbstractItemModel > | sourceModel () const noexcept |
~BtBookshelfTreeModel () override | |
Additional Inherited Members | |
Public Types inherited from BtBookshelfTreeModel | |
enum | CheckedBehavior { CHECKED , UNCHECKED , MODULE_HIDDEN , MODULE_INDEXED } |
enum | Group { GROUP_CATEGORY = 0 , GROUP_LANGUAGE = 1 , GROUP_INDEXING } |
enum | ModuleRole { CheckStateRole = BtBookshelfModel::UserRole , UserRole = BtBookshelfModel::UserRole + 100 } |
Public Slots inherited from BtBookshelfTreeModel | |
void | setCheckable (bool checkable) |
void | setCheckedModules (BtConstModuleSet const &modules) |
void | setDefaultChecked (CheckedBehavior b) |
void | setGroupingOrder (const BtBookshelfTreeModel::Grouping &groupingOrder, bool emitSignal=true) |
void | setSourceModel (std::shared_ptr< QAbstractItemModel > sourceModel) |
Signals inherited from BtBookshelfTreeModel | |
void | groupingOrderChanged (BtBookshelfTreeModel::Grouping newGrouping) |
void | moduleChecked (CSwordModuleInfo *module, bool checked) |
Protected Slots inherited from BtBookshelfTreeModel | |
void | moduleDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
void | moduleInserted (const QModelIndex &parent, int start, int end) |
void | moduleRemoved (const QModelIndex &parent, int start, int end) |
Protected Member Functions inherited from BtBookshelfTreeModel | |
void | resetData () |
Definition at line 24 of file btinstallpagemodel.h.
BtInstallPageModel::BtInstallPageModel | ( | Grouping const & | grouping, |
QObject *const | parent = nullptr |
||
) |
Definition at line 21 of file btinstallpagemodel.cpp.
References BtBookshelfTreeModel::setCheckable(), BtBookshelfTreeModel::setDefaultChecked(), and BtBookshelfTreeModel::UNCHECKED.
|
finaloverride |
Definition at line 68 of file btinstallpagemodel.cpp.
References BtBookshelfTreeModel::parent().
|
finaloverride |
Definition at line 29 of file btinstallpagemodel.cpp.
References BtBookshelfTreeModel::data(), CSwordModuleInfo::Description, BtBookshelfTreeModel::index(), CSwordBackend::instance(), BtBookshelfTreeModel::module(), and CSwordModuleInfo::ModuleVersion.
|
finaloverride |
Definition at line 73 of file btinstallpagemodel.cpp.