|
BibleTime
|
#include <btbookshelffiltermodel.h>
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 |
| CSwordModuleInfo * | module (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::ModuleType > | m_moduleChooserType |
| QString | m_nameFilter |
| bool | m_showHidden |
Definition at line 24 of file btbookshelffiltermodel.h.
| BtBookshelfFilterModel::BtBookshelfFilterModel | ( | QObject * | parent = nullptr | ) |
Definition at line 20 of file btbookshelffiltermodel.cpp.
|
private |
Definition at line 33 of file btbookshelffiltermodel.cpp.
Referenced by setModuleChooserType(), setNameFilterFixedString(), and setShowHidden().
|
override |
Definition at line 57 of file btbookshelffiltermodel.cpp.
References CSwordModuleInfo::Bible, BT_ASSERT, CSwordModuleInfo::Commentary, filterAcceptsRow(), m_moduleChooserType, m_nameFilter, m_showHidden, module(), BtBookshelfModel::ModuleHiddenRole, BtBookshelfModel::ModuleNameRole, and BtBookshelfModel::ModulePointerRole.
Referenced by filterAcceptsRow().
|
noexcept |
Definition at line 26 of file btbookshelffiltermodel.cpp.
References BtBookshelfModel::ModulePointerRole.
Referenced by BtModuleChooserMenu::BtModuleChooserMenu(), and filterAcceptsRow().
|
inlinenoexcept |
Definition at line 39 of file btbookshelffiltermodel.h.
References m_moduleChooserType.
Referenced by BtModuleChooserMenu::buttonIcon(), and BtModuleChooserMenu::newAction().
|
inlinenoexcept |
Definition at line 34 of file btbookshelffiltermodel.h.
References m_nameFilter.
|
slot |
Definition at line 53 of file btbookshelffiltermodel.cpp.
References changeFilter(), and m_moduleChooserType.
Referenced by BtModuleChooserMenu::BtModuleChooserMenu().
|
slot |
Definition at line 47 of file btbookshelffiltermodel.cpp.
References changeFilter(), and m_nameFilter.
Referenced by BtBookshelfWidget::BtBookshelfWidget(), and BtBookshelfWorksPage::BtBookshelfWorksPage().
|
slot |
Definition at line 50 of file btbookshelffiltermodel.cpp.
References changeFilter(), and m_showHidden.
Referenced by BtBookshelfWidget::initActions().
|
inlinenoexcept |
Definition at line 36 of file btbookshelffiltermodel.h.
References m_showHidden.
|
private |
Definition at line 58 of file btbookshelffiltermodel.h.
Referenced by filterAcceptsRow(), moduleChooserType(), and setModuleChooserType().
|
private |
Definition at line 56 of file btbookshelffiltermodel.h.
Referenced by filterAcceptsRow(), nameFilter(), and setNameFilterFixedString().
|
private |
Definition at line 57 of file btbookshelffiltermodel.h.
Referenced by filterAcceptsRow(), setShowHidden(), and showHidden().