qBittorrent
|
#include <torrentcontentfiltermodel.h>
Public Slots | |
void | selectAll () |
void | selectNone () |
Signals | |
void | filteredFilesChanged () |
Public Member Functions | |
TorrentContentFilterModel (QObject *parent=nullptr) | |
TorrentContentModel * | model () const |
TorrentContentModelItem::ItemType | itemType (const QModelIndex &index) const |
int | getFileIndex (const QModelIndex &index) const |
QModelIndex | parent (const QModelIndex &child) const override |
Protected Member Functions | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
Private Member Functions | |
bool | hasFiltered (const QModelIndex &folder) const |
Private Attributes | |
TorrentContentModel * | m_model |
Utils::Compare::NaturalLessThan< Qt::CaseInsensitive > | m_naturalLessThan |
Definition at line 38 of file torrentcontentfiltermodel.h.
TorrentContentFilterModel::TorrentContentFilterModel | ( | QObject * | parent = nullptr | ) |
Definition at line 33 of file torrentcontentfiltermodel.cpp.
References TorrentContentModelItem::COL_NAME, filteredFilesChanged(), TorrentContentModel::filteredFilesChanged(), m_model, and TorrentContentModel::UnderlyingDataRole.
|
overrideprotected |
Definition at line 72 of file torrentcontentfiltermodel.cpp.
References TorrentContentModelItem::FolderType, hasFiltered(), TorrentContentModel::index(), TorrentContentModel::itemType(), and m_model.
|
signal |
Referenced by PropertiesWidget::PropertiesWidget(), and TorrentContentFilterModel().
int TorrentContentFilterModel::getFileIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 57 of file torrentcontentfiltermodel.cpp.
References TorrentContentModel::getFileIndex(), and m_model.
Referenced by PropertiesWidget::getFullPath().
|
private |
Definition at line 126 of file torrentcontentfiltermodel.cpp.
References TorrentContentModel::index(), m_model, and TorrentContentModel::rowCount().
Referenced by filterAcceptsRow().
TorrentContentModelItem::ItemType TorrentContentFilterModel::itemType | ( | const QModelIndex & | index | ) | const |
Definition at line 52 of file torrentcontentfiltermodel.cpp.
References TorrentContentModel::itemType(), and m_model.
Referenced by PropertiesWidget::getFullPath().
|
overrideprotected |
Definition at line 83 of file torrentcontentfiltermodel.cpp.
References TorrentContentModelItem::COL_NAME, TorrentContentModelItem::FolderType, TorrentContentModel::index(), TorrentContentModel::itemType(), m_model, and m_naturalLessThan.
TorrentContentModel * TorrentContentFilterModel::model | ( | ) | const |
Definition at line 47 of file torrentcontentfiltermodel.cpp.
References m_model.
Referenced by AddNewTorrentDialog::accept(), PropertiesWidget::applyPriorities(), PropertiesWidget::clear(), AddNewTorrentDialog::contentLayoutChanged(), PropertiesWidget::loadDynamicData(), PropertiesWidget::loadTorrentInfos(), AddNewTorrentDialog::setupTreeview(), and AddNewTorrentDialog::updateDiskSpaceLabel().
|
override |
Definition at line 62 of file torrentcontentfiltermodel.cpp.
References m_model, and TorrentContentModel::parent().
Referenced by PropertiesWidget::getFullPath().
|
slot |
Definition at line 110 of file torrentcontentfiltermodel.cpp.
Referenced by PropertiesWidget::PropertiesWidget().
|
slot |
Definition at line 118 of file torrentcontentfiltermodel.cpp.
Referenced by PropertiesWidget::PropertiesWidget().
|
private |
Definition at line 64 of file torrentcontentfiltermodel.h.
Referenced by filterAcceptsRow(), getFileIndex(), hasFiltered(), itemType(), lessThan(), model(), parent(), and TorrentContentFilterModel().
|
private |
Definition at line 65 of file torrentcontentfiltermodel.h.
Referenced by lessThan().