BibleTime
Public Member Functions | List of all members
BtInstallPageModel Class Reference

#include <btinstallpagemodel.h>

Inheritance diagram for BtInstallPageModel:

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
 
CSwordModuleInfomodule (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< QAbstractItemModelsourceModel () 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 ()
 

Detailed Description

Definition at line 24 of file btinstallpagemodel.h.

Constructor & Destructor Documentation

◆ BtInstallPageModel()

BtInstallPageModel::BtInstallPageModel ( Grouping const &  grouping,
QObject *const  parent = nullptr 
)

Member Function Documentation

◆ columnCount()

int BtInstallPageModel::columnCount ( QModelIndex const &  parent = QModelIndex()) const
finaloverride

Definition at line 68 of file btinstallpagemodel.cpp.

References BtBookshelfTreeModel::parent().

◆ data()

QVariant BtInstallPageModel::data ( QModelIndex const &  index,
int  role = Qt::DisplayRole 
) const
finaloverride

◆ headerData()

QVariant BtInstallPageModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
finaloverride

Definition at line 73 of file btinstallpagemodel.cpp.


The documentation for this class was generated from the following files: