LeechCraft 0.6.70-17793-g6e56308e78
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::FixedStringFilterProxyModel Class Reference

#include "fixedstringfilterproxymodel.h"

Inheritance diagram for LC::Util::FixedStringFilterProxyModel:
Collaboration diagram for LC::Util::FixedStringFilterProxyModel:

Public Member Functions

 FixedStringFilterProxyModel (QObject *=nullptr)
 FixedStringFilterProxyModel (Qt::CaseSensitivity, QObject *=nullptr)
virtual void SetFilterString (const QString &)
QString GetFilterString () const
bool IsFilterSet () const
void SetCaseSensitivity (Qt::CaseSensitivity)
Qt::CaseSensitivity GetCaseSensitivity () const
void SetFilterRoles (const QList< int > &)
QList< int > GetFilterRoles () const
void SetFilterColumns (const QList< int > &)
QList< int > GetFilterColumns () const

Protected Member Functions

bool IsMatch (const QString &) const
bool filterAcceptsRow (int row, const QModelIndex &parent) const override

Detailed Description

Definition at line 16 of file fixedstringfilterproxymodel.h.

Constructor & Destructor Documentation

◆ FixedStringFilterProxyModel() [1/2]

LC::Util::FixedStringFilterProxyModel::FixedStringFilterProxyModel ( QObject * parent = nullptr)
explicit

Definition at line 14 of file fixedstringfilterproxymodel.cpp.

References FixedStringFilterProxyModel().

Referenced by FixedStringFilterProxyModel(), and LC::Util::TagsFilterModel::TagsFilterModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FixedStringFilterProxyModel() [2/2]

LC::Util::FixedStringFilterProxyModel::FixedStringFilterProxyModel ( Qt::CaseSensitivity cs,
QObject * parent = nullptr )
explicit

Definition at line 19 of file fixedstringfilterproxymodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

bool LC::Util::FixedStringFilterProxyModel::filterAcceptsRow ( int row,
const QModelIndex & parent ) const
overrideprotected

Definition at line 92 of file fixedstringfilterproxymodel.cpp.

References IsFilterSet(), and IsMatch().

Referenced by LC::Util::TagsFilterModel::filterAcceptsRow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCaseSensitivity()

Qt::CaseSensitivity LC::Util::FixedStringFilterProxyModel::GetCaseSensitivity ( ) const

Definition at line 35 of file fixedstringfilterproxymodel.cpp.

◆ GetFilterColumns()

QList< int > LC::Util::FixedStringFilterProxyModel::GetFilterColumns ( ) const

Definition at line 63 of file fixedstringfilterproxymodel.cpp.

◆ GetFilterRoles()

QList< int > LC::Util::FixedStringFilterProxyModel::GetFilterRoles ( ) const

Definition at line 49 of file fixedstringfilterproxymodel.cpp.

◆ GetFilterString()

QString LC::Util::FixedStringFilterProxyModel::GetFilterString ( ) const

Definition at line 77 of file fixedstringfilterproxymodel.cpp.

◆ IsFilterSet()

bool LC::Util::FixedStringFilterProxyModel::IsFilterSet ( ) const

Definition at line 82 of file fixedstringfilterproxymodel.cpp.

Referenced by filterAcceptsRow().

Here is the caller graph for this function:

◆ IsMatch()

bool LC::Util::FixedStringFilterProxyModel::IsMatch ( const QString & text) const
protected

Definition at line 87 of file fixedstringfilterproxymodel.cpp.

Referenced by filterAcceptsRow().

Here is the caller graph for this function:

◆ SetCaseSensitivity()

void LC::Util::FixedStringFilterProxyModel::SetCaseSensitivity ( Qt::CaseSensitivity cs)

Definition at line 26 of file fixedstringfilterproxymodel.cpp.

◆ SetFilterColumns()

void LC::Util::FixedStringFilterProxyModel::SetFilterColumns ( const QList< int > & columns)

Definition at line 54 of file fixedstringfilterproxymodel.cpp.

◆ SetFilterRoles()

void LC::Util::FixedStringFilterProxyModel::SetFilterRoles ( const QList< int > & roles)

Definition at line 40 of file fixedstringfilterproxymodel.cpp.

◆ SetFilterString()

void LC::Util::FixedStringFilterProxyModel::SetFilterString ( const QString & filter)
virtual

Reimplemented in LC::Util::TagsFilterModel.

Definition at line 68 of file fixedstringfilterproxymodel.cpp.

Referenced by LC::Util::TagsFilterModel::SetFilterString().

Here is the caller graph for this function:

The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17793.g6e56308e78-build/leechcraft-0.6.70-17793-g6e56308e78/src/util/models/fixedstringfilterproxymodel.h
  • /home/abuild/rpmbuild/BUILD/leechcraft-doc-0.6.70+git.17793.g6e56308e78-build/leechcraft-0.6.70-17793-g6e56308e78/src/util/models/fixedstringfilterproxymodel.cpp