BibleTime
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
BtBookshelfFilterModel Class Reference

#include <btbookshelffiltermodel.h>

Inheritance diagram for BtBookshelfFilterModel:

Public Slots

void setModuleChooserType (std::optional< CSwordModuleInfo::ModuleType > type)
 
void setNameFilterFixedString (QString const &nameFilter)
 
void setShowHidden (bool show)
 

Public Member Functions

 BtBookshelfFilterModel (QObject *parent=nullptr)
 
bool filterAcceptsRow (int row, QModelIndex const &parent) const override
 
CSwordModuleInfomodule (QModelIndex const &index) const noexcept
 
std::optional< CSwordModuleInfo::ModuleType > const & moduleChooserType () const noexcept
 
QString const & nameFilter () const noexcept
 
bool showHidden () const noexcept
 

Private Member Functions

template<typename Field , typename Value >
void changeFilter (Field &field, Value &&value)
 

Private Attributes

std::optional< CSwordModuleInfo::ModuleTypem_moduleChooserType
 
QString m_nameFilter
 
bool m_showHidden
 

Detailed Description

Definition at line 24 of file btbookshelffiltermodel.h.

Constructor & Destructor Documentation

◆ BtBookshelfFilterModel()

BtBookshelfFilterModel::BtBookshelfFilterModel ( QObject parent = nullptr)

Definition at line 20 of file btbookshelffiltermodel.cpp.

Member Function Documentation

◆ changeFilter()

template<typename Field , typename Value >
void BtBookshelfFilterModel::changeFilter ( Field &  field,
Value &&  value 
)
private

◆ filterAcceptsRow()

bool BtBookshelfFilterModel::filterAcceptsRow ( int  row,
QModelIndex const &  parent 
) const
override

◆ module()

CSwordModuleInfo * BtBookshelfFilterModel::module ( QModelIndex const &  index) const
noexcept

◆ moduleChooserType()

std::optional< CSwordModuleInfo::ModuleType > const & BtBookshelfFilterModel::moduleChooserType ( ) const
inlinenoexcept

◆ nameFilter()

QString const & BtBookshelfFilterModel::nameFilter ( ) const
inlinenoexcept

Definition at line 34 of file btbookshelffiltermodel.h.

References m_nameFilter.

◆ setModuleChooserType

void BtBookshelfFilterModel::setModuleChooserType ( std::optional< CSwordModuleInfo::ModuleType type)
slot

◆ setNameFilterFixedString

void BtBookshelfFilterModel::setNameFilterFixedString ( QString const &  nameFilter)
slot

◆ setShowHidden

void BtBookshelfFilterModel::setShowHidden ( bool  show)
slot

Definition at line 50 of file btbookshelffiltermodel.cpp.

References changeFilter(), and m_showHidden.

Referenced by BtBookshelfWidget::initActions().

◆ showHidden()

bool BtBookshelfFilterModel::showHidden ( ) const
inlinenoexcept

Definition at line 36 of file btbookshelffiltermodel.h.

References m_showHidden.

Member Data Documentation

◆ m_moduleChooserType

std::optional<CSwordModuleInfo::ModuleType> BtBookshelfFilterModel::m_moduleChooserType
private

◆ m_nameFilter

QString BtBookshelfFilterModel::m_nameFilter
private

Definition at line 56 of file btbookshelffiltermodel.h.

Referenced by filterAcceptsRow(), nameFilter(), and setNameFilterFixedString().

◆ m_showHidden

bool BtBookshelfFilterModel::m_showHidden
private

Definition at line 57 of file btbookshelffiltermodel.h.

Referenced by filterAcceptsRow(), setShowHidden(), and showHidden().


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