![]() |
LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
|
#include "checkableproxymodel.h"
Signals | |
void | selectionChanged () |
Public Member Functions | |
CheckableProxyModelBase (int idRole, QObject *parent=nullptr) | |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | data (const QModelIndex &index, int role) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
void | CheckAll () |
void | CheckNone () |
Protected Member Functions | |
virtual bool | IsChecked (const QVariant &idVar) const =0 |
virtual void | SetChecked (const QVariant &idVar, bool checked)=0 |
Protected Attributes | |
const int | IdRole_ |
Definition at line 17 of file checkableproxymodel.h.
|
explicit |
Definition at line 13 of file checkableproxymodel.cpp.
References IdRole_.
void LC::Util::CheckableProxyModelBase::CheckAll | ( | ) |
Definition at line 48 of file checkableproxymodel.cpp.
References IdRole_, IsChecked(), selectionChanged(), and SetChecked().
void LC::Util::CheckableProxyModelBase::CheckNone | ( | ) |
Definition at line 66 of file checkableproxymodel.cpp.
References IdRole_, IsChecked(), selectionChanged(), and SetChecked().
|
override |
Definition at line 27 of file checkableproxymodel.cpp.
References IdRole_, and IsChecked().
|
override |
Definition at line 19 of file checkableproxymodel.cpp.
References flags().
Referenced by LC::Util::CheckableProxyModel< IdType >::CheckableProxyModelBase(), and flags().
|
protectedpure virtual |
Implemented in LC::Util::CheckableProxyModel< IdType >.
Referenced by CheckAll(), CheckNone(), and data().
|
signal |
|
protectedpure virtual |
Implemented in LC::Util::CheckableProxyModel< IdType >.
Referenced by CheckAll(), CheckNone(), and setData().
|
override |
Definition at line 35 of file checkableproxymodel.cpp.
References IdRole_, selectionChanged(), and SetChecked().
|
protected |
Definition at line 21 of file checkableproxymodel.h.
Referenced by CheckableProxyModelBase(), CheckAll(), CheckNone(), data(), LC::Util::CheckableProxyModel< IdType >::GetChecked(), and setData().