Skip to content

Class QfPluginProxyModel

ClassList > QfPluginProxyModel

Inherits the following classes: QSortFilterProxyModel

Public Types

Type Name
enum PluginFilter

Public Properties

Type Name
property PluginFilter filter
property QString searchTerm

Public Signals

Type Name
signal void filterChanged
signal void searchTermChanged

Public Functions

Type Name
QfPluginProxyModel (QObject * parent=nullptr)
PluginFilter filter () const
QString searchTerm () const
void setFilter (PluginFilter filter)
void setSearchTerm (const QString & searchTerm)

Protected Functions

Type Name
bool filterAcceptsRow (int sourceRow, const QModelIndex & sourceParent) override const
bool lessThan (const QModelIndex & sourceLeft, const QModelIndex & sourceRight) override const

Public Types Documentation

enum PluginFilter

enum QfPluginProxyModel::PluginFilter {
    LocalPlugin,
    RemotePlugin
};

Public Properties Documentation

property filter [1/2]

PluginFilter QfPluginProxyModel::filter;

property searchTerm [1/2]

QString QfPluginProxyModel::searchTerm;

Public Signals Documentation

signal filterChanged

void QfPluginProxyModel::filterChanged;

signal searchTermChanged

void QfPluginProxyModel::searchTermChanged;

Public Functions Documentation

function QfPluginProxyModel

explicit QfPluginProxyModel::QfPluginProxyModel (
    QObject * parent=nullptr
) 

function filter [2/2]

PluginFilter QfPluginProxyModel::filter () const

Returns the current plugin filter.


function searchTerm [2/2]

QString QfPluginProxyModel::searchTerm () const

Returns the current search term used to filter items.


function setFilter

void QfPluginProxyModel::setFilter (
    PluginFilter filter
) 

Sets the plugin filter.


function setSearchTerm

void QfPluginProxyModel::setSearchTerm (
    const QString & searchTerm
) 

Sets the search term for filtering and updates the filter.


Protected Functions Documentation

function filterAcceptsRow

bool QfPluginProxyModel::filterAcceptsRow (
    int sourceRow,
    const QModelIndex & sourceParent
) override const

function lessThan

bool QfPluginProxyModel::lessThan (
    const QModelIndex & sourceLeft,
    const QModelIndex & sourceRight
) override const


The documentation for this class was generated from the following file src/app/qfpluginmodel.h