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 setEnabled (bool enable)
 
void setHiddenFilterKeyColumn (int column)
 
void setHiddenFilterRole (int role)
 
void setNameFilterCase (Qt::CaseSensitivity value)
 
void setNameFilterFixedString (QString const &nameFilter)
 
void setNameFilterKeyColumn (int column)
 
void setNameFilterRole (int role)
 
void setShowHidden (bool show)
 
void setShowShown (bool show)
 

Public Member Functions

 BtBookshelfFilterModel (QObject *parent=nullptr)
 
bool enabled () const noexcept
 
bool filterAcceptsRow (int row, QModelIndex const &parent) const override
 
int hiddenFilterKeyColumn () const
 
int hiddenFilterRole () const noexcept
 
QString const & nameFilter () const noexcept
 
Qt::CaseSensitivity nameFilterCase () const noexcept
 
int nameFilterKeyColumn () const noexcept
 
int nameFilterRole () const noexcept
 
bool showHidden () const noexcept
 
bool showShown () const noexcept
 

Private Member Functions

bool hiddenFilterAcceptsRow (int row, QModelIndex const &parent) const
 
bool nameFilterAcceptsRow (int row, QModelIndex const &parent) const
 

Private Attributes

bool m_enabled
 
int m_hiddenFilterColumn
 
int m_hiddenFilterRole
 
QString m_nameFilter
 
Qt::CaseSensitivity m_nameFilterCase
 
int m_nameFilterColumn
 
int m_nameFilterRole
 
bool m_showHidden
 
bool m_showShown
 

Detailed Description

Definition at line 25 of file btbookshelffiltermodel.h.

Constructor & Destructor Documentation

◆ BtBookshelfFilterModel()

BtBookshelfFilterModel::BtBookshelfFilterModel ( QObject parent = nullptr)

Definition at line 22 of file btbookshelffiltermodel.cpp.

Member Function Documentation

◆ enabled()

bool BtBookshelfFilterModel::enabled ( ) const
inlinenoexcept

Definition at line 33 of file btbookshelffiltermodel.h.

References m_enabled.

◆ filterAcceptsRow()

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

◆ hiddenFilterAcceptsRow()

bool BtBookshelfFilterModel::hiddenFilterAcceptsRow ( int  row,
QModelIndex const &  parent 
) const
private

◆ hiddenFilterKeyColumn()

int BtBookshelfFilterModel::hiddenFilterKeyColumn ( ) const
inline

Definition at line 44 of file btbookshelffiltermodel.h.

References m_hiddenFilterColumn.

◆ hiddenFilterRole()

int BtBookshelfFilterModel::hiddenFilterRole ( ) const
inlinenoexcept

Definition at line 43 of file btbookshelffiltermodel.h.

References m_hiddenFilterRole.

◆ nameFilter()

QString const& BtBookshelfFilterModel::nameFilter ( ) const
inlinenoexcept

Definition at line 39 of file btbookshelffiltermodel.h.

References m_nameFilter.

◆ nameFilterAcceptsRow()

bool BtBookshelfFilterModel::nameFilterAcceptsRow ( int  row,
QModelIndex const &  parent 
) const
private

◆ nameFilterCase()

Qt::CaseSensitivity BtBookshelfFilterModel::nameFilterCase ( ) const
inlinenoexcept

Definition at line 40 of file btbookshelffiltermodel.h.

References m_nameFilterCase.

◆ nameFilterKeyColumn()

int BtBookshelfFilterModel::nameFilterKeyColumn ( ) const
inlinenoexcept

Definition at line 38 of file btbookshelffiltermodel.h.

References m_nameFilterColumn.

◆ nameFilterRole()

int BtBookshelfFilterModel::nameFilterRole ( ) const
inlinenoexcept

Definition at line 37 of file btbookshelffiltermodel.h.

References m_nameFilterRole.

◆ setEnabled

void BtBookshelfFilterModel::setEnabled ( bool  enable)
slot

Definition at line 34 of file btbookshelffiltermodel.cpp.

References m_enabled.

◆ setHiddenFilterKeyColumn

void BtBookshelfFilterModel::setHiddenFilterKeyColumn ( int  column)
slot

Definition at line 80 of file btbookshelffiltermodel.cpp.

References m_hiddenFilterColumn.

◆ setHiddenFilterRole

void BtBookshelfFilterModel::setHiddenFilterRole ( int  role)
slot

Definition at line 73 of file btbookshelffiltermodel.cpp.

References m_hiddenFilterRole.

◆ setNameFilterCase

void BtBookshelfFilterModel::setNameFilterCase ( Qt::CaseSensitivity  value)
slot

Definition at line 64 of file btbookshelffiltermodel.cpp.

References m_nameFilterCase.

◆ setNameFilterFixedString

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

◆ setNameFilterKeyColumn

void BtBookshelfFilterModel::setNameFilterKeyColumn ( int  column)
slot

Definition at line 50 of file btbookshelffiltermodel.cpp.

References m_nameFilterColumn.

◆ setNameFilterRole

void BtBookshelfFilterModel::setNameFilterRole ( int  role)
slot

Definition at line 43 of file btbookshelffiltermodel.cpp.

References m_nameFilterRole.

◆ setShowHidden

void BtBookshelfFilterModel::setShowHidden ( bool  show)
slot

Definition at line 87 of file btbookshelffiltermodel.cpp.

References m_showHidden.

Referenced by BtBookshelfWidget::initActions().

◆ setShowShown

void BtBookshelfFilterModel::setShowShown ( bool  show)
slot

Definition at line 94 of file btbookshelffiltermodel.cpp.

References m_showShown.

◆ showHidden()

bool BtBookshelfFilterModel::showHidden ( ) const
inlinenoexcept

Definition at line 45 of file btbookshelffiltermodel.h.

References m_showHidden.

◆ showShown()

bool BtBookshelfFilterModel::showShown ( ) const
inlinenoexcept

Definition at line 46 of file btbookshelffiltermodel.h.

References m_showShown.

Member Data Documentation

◆ m_enabled

bool BtBookshelfFilterModel::m_enabled
private

Definition at line 71 of file btbookshelffiltermodel.h.

Referenced by enabled(), filterAcceptsRow(), and setEnabled().

◆ m_hiddenFilterColumn

int BtBookshelfFilterModel::m_hiddenFilterColumn
private

◆ m_hiddenFilterRole

int BtBookshelfFilterModel::m_hiddenFilterRole
private

◆ m_nameFilter

QString BtBookshelfFilterModel::m_nameFilter
private

◆ m_nameFilterCase

Qt::CaseSensitivity BtBookshelfFilterModel::m_nameFilterCase
private

◆ m_nameFilterColumn

int BtBookshelfFilterModel::m_nameFilterColumn
private

◆ m_nameFilterRole

int BtBookshelfFilterModel::m_nameFilterRole
private

◆ m_showHidden

bool BtBookshelfFilterModel::m_showHidden
private

Definition at line 82 of file btbookshelffiltermodel.h.

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

◆ m_showShown

bool BtBookshelfFilterModel::m_showShown
private

Definition at line 83 of file btbookshelffiltermodel.h.

Referenced by hiddenFilterAcceptsRow(), setShowShown(), and showShown().


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