digiKam
Digikam::DConfigDlgInternal::DConfigDlgListViewProxy Class Reference
+ Inheritance diagram for Digikam::DConfigDlgInternal::DConfigDlgListViewProxy:

Public Slots

void rebuildMap ()
 

Public Member Functions

int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
 DConfigDlgListViewProxy (QObject *const parent=nullptr)
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex mapFromSource (const QModelIndex &index) const override
 
QModelIndex mapToSource (const QModelIndex &index) const override
 
QModelIndex parent (const QModelIndex &) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
 ~DConfigDlgListViewProxy () override
 

Detailed Description

We need this proxy model to map the leaves of a tree-like model to a one-level list model.

Constructor & Destructor Documentation

◆ DConfigDlgListViewProxy()

Digikam::DConfigDlgListViewProxy::DConfigDlgListViewProxy ( QObject *const  parent = nullptr)
explicit

◆ ~DConfigDlgListViewProxy()

Digikam::DConfigDlgListViewProxy::~DConfigDlgListViewProxy ( )
override

Member Function Documentation

◆ columnCount()

int Digikam::DConfigDlgListViewProxy::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data()

QVariant Digikam::DConfigDlgListViewProxy::data ( const QModelIndex &  index,
int  role 
) const
override

References index().

◆ index()

QModelIndex Digikam::DConfigDlgListViewProxy::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override

Referenced by data(), mapFromSource(), and mapToSource().

◆ mapFromSource()

QModelIndex Digikam::DConfigDlgListViewProxy::mapFromSource ( const QModelIndex &  index) const
override

References index().

◆ mapToSource()

QModelIndex Digikam::DConfigDlgListViewProxy::mapToSource ( const QModelIndex &  index) const
override

References index().

◆ parent()

QModelIndex Digikam::DConfigDlgListViewProxy::parent ( const QModelIndex &  ) const
override

◆ rebuildMap

void Digikam::DConfigDlgListViewProxy::rebuildMap ( )
slot

◆ rowCount()

int Digikam::DConfigDlgListViewProxy::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

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