LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::CheckableProxyModelBase Class Referenceabstract

#include "checkableproxymodel.h"

Inheritance diagram for LC::Util::CheckableProxyModelBase:
Collaboration diagram for LC::Util::CheckableProxyModelBase:

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_

Detailed Description

Definition at line 17 of file checkableproxymodel.h.

Constructor & Destructor Documentation

◆ CheckableProxyModelBase()

LC::Util::CheckableProxyModelBase::CheckableProxyModelBase ( int idRole,
QObject * parent = nullptr )
explicit

Definition at line 13 of file checkableproxymodel.cpp.

References IdRole_.

Member Function Documentation

◆ CheckAll()

void LC::Util::CheckableProxyModelBase::CheckAll ( )

Definition at line 48 of file checkableproxymodel.cpp.

References IdRole_, IsChecked(), selectionChanged(), and SetChecked().

Here is the call graph for this function:

◆ CheckNone()

void LC::Util::CheckableProxyModelBase::CheckNone ( )

Definition at line 66 of file checkableproxymodel.cpp.

References IdRole_, IsChecked(), selectionChanged(), and SetChecked().

Here is the call graph for this function:

◆ data()

QVariant LC::Util::CheckableProxyModelBase::data ( const QModelIndex & index,
int role ) const
override

Definition at line 27 of file checkableproxymodel.cpp.

References IdRole_, and IsChecked().

Here is the call graph for this function:

◆ flags()

Qt::ItemFlags LC::Util::CheckableProxyModelBase::flags ( const QModelIndex & index) const
override

Definition at line 19 of file checkableproxymodel.cpp.

References flags().

Referenced by LC::Util::CheckableProxyModel< IdType >::CheckableProxyModelBase(), and flags().

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

◆ IsChecked()

virtual bool LC::Util::CheckableProxyModelBase::IsChecked ( const QVariant & idVar) const
protectedpure virtual

Implemented in LC::Util::CheckableProxyModel< IdType >.

Referenced by CheckAll(), CheckNone(), and data().

Here is the caller graph for this function:

◆ selectionChanged

void LC::Util::CheckableProxyModelBase::selectionChanged ( )
signal

Referenced by CheckAll(), CheckNone(), and setData().

Here is the caller graph for this function:

◆ SetChecked()

virtual void LC::Util::CheckableProxyModelBase::SetChecked ( const QVariant & idVar,
bool checked )
protectedpure virtual

Implemented in LC::Util::CheckableProxyModel< IdType >.

Referenced by CheckAll(), CheckNone(), and setData().

Here is the caller graph for this function:

◆ setData()

bool LC::Util::CheckableProxyModelBase::setData ( const QModelIndex & index,
const QVariant & value,
int role )
override

Definition at line 35 of file checkableproxymodel.cpp.

References IdRole_, selectionChanged(), and SetChecked().

Here is the call graph for this function:

Member Data Documentation

◆ IdRole_

const int LC::Util::CheckableProxyModelBase::IdRole_
protected

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