LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
LC::Util::SelectionProxyModel< Id > Class Template Reference

#include "selectionproxymodel.h"

+ Inheritance diagram for LC::Util::SelectionProxyModel< Id >:
+ Collaboration diagram for LC::Util::SelectionProxyModel< Id >:

Classes

struct  Config
 

Public Member Functions

 SelectionProxyModel (QAbstractItemModel &source, const Config &config, QObject *parent=nullptr)
 
int GetIsSelectedRole () const
 
void SetSelections (const QSet< Id > &selections)
 
QVariant data (const QModelIndex &index, int role) const override
 

Detailed Description

template<typename Id>
class LC::Util::SelectionProxyModel< Id >

Definition at line 16 of file selectionproxymodel.h.

Constructor & Destructor Documentation

◆ SelectionProxyModel()

template<typename Id >
LC::Util::SelectionProxyModel< Id >::SelectionProxyModel ( QAbstractItemModel &  source,
const Config config,
QObject *  parent = nullptr 
)
inlineexplicit

Definition at line 30 of file selectionproxymodel.h.

Member Function Documentation

◆ data()

template<typename Id >
QVariant LC::Util::SelectionProxyModel< Id >::data ( const QModelIndex &  index,
int  role 
) const
inlineoverride

◆ GetIsSelectedRole()

template<typename Id >
int LC::Util::SelectionProxyModel< Id >::GetIsSelectedRole ( ) const
inline

◆ SetSelections()

template<typename Id >
void LC::Util::SelectionProxyModel< Id >::SetSelections ( const QSet< Id > &  selections)
inline

Definition at line 42 of file selectionproxymodel.h.


The documentation for this class was generated from the following file: