Skip to content

Class PluginProxyModel

ClassList > PluginProxyModel

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
PluginProxyModel (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 PluginProxyModel::PluginFilter {
    LocalPlugin,
    RemotePlugin
};

Public Properties Documentation

property filter [1/2]

PluginFilter PluginProxyModel::filter;

property searchTerm [1/2]

QString PluginProxyModel::searchTerm;

Public Signals Documentation

signal filterChanged

void PluginProxyModel::filterChanged;

signal searchTermChanged

void PluginProxyModel::searchTermChanged;

Public Functions Documentation

function PluginProxyModel

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

function filter [2/2]

PluginFilter PluginProxyModel::filter () const

Returns the current plugin filter.


function searchTerm [2/2]

QString PluginProxyModel::searchTerm () const

Returns the current search term used to filter items.


function setFilter

void PluginProxyModel::setFilter (
    PluginFilter filter
) 

Sets the plugin filter.


function setSearchTerm

void PluginProxyModel::setSearchTerm (
    const QString & searchTerm
) 

Sets the search term for filtering and updates the filter.


Protected Functions Documentation

function filterAcceptsRow

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

function lessThan

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


The documentation for this class was generated from the following file src/core/pluginmodel.h