digiKam
Digikam::GPSLinkItemSelectionModel Class Reference
+ Inheritance diagram for Digikam::GPSLinkItemSelectionModel:

Signals

void linkedItemSelectionModelChanged ()
 

Public Member Functions

 GPSLinkItemSelectionModel (QAbstractItemModel *const targetModel, QItemSelectionModel *const linkedItemSelectionModel, QObject *const parent=nullptr)
 
 GPSLinkItemSelectionModel (QObject *const parent=nullptr)
 
QItemSelectionModel * linkedItemSelectionModel () const
 
void select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) override
 
void select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) override
 
void setLinkedItemSelectionModel (QItemSelectionModel *const selectionModel)
 
 ~GPSLinkItemSelectionModel () override
 

Protected Attributes

GPSLinkItemSelectionModelPrivate *const d_ptr
 

Properties

QItemSelectionModel * linkedItemSelectionModel
 

Detailed Description

Makes it possible to share a selection in multiple views which do not have the same source model

Although Qt documentation, multiple views can share the same QItemSelectionModel, the views then need to have the same source model.

If there is a proxy model between the model and one of the views, or different proxy models in each, this class makes it possible to share the selection between the views.

Constructor & Destructor Documentation

◆ GPSLinkItemSelectionModel() [1/2]

Digikam::GPSLinkItemSelectionModel::GPSLinkItemSelectionModel ( QAbstractItemModel *const  targetModel,
QItemSelectionModel *const  linkedItemSelectionModel,
QObject *const  parent = nullptr 
)

◆ GPSLinkItemSelectionModel() [2/2]

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

◆ ~GPSLinkItemSelectionModel()

Digikam::GPSLinkItemSelectionModel::~GPSLinkItemSelectionModel ( )
override

References d_ptr.

Member Function Documentation

◆ linkedItemSelectionModel()

QItemSelectionModel * Digikam::GPSLinkItemSelectionModel::linkedItemSelectionModel ( ) const

◆ linkedItemSelectionModelChanged

void Digikam::GPSLinkItemSelectionModel::linkedItemSelectionModelChanged ( )
signal

◆ select() [1/2]

void Digikam::GPSLinkItemSelectionModel::select ( const QItemSelection &  selection,
QItemSelectionModel::SelectionFlags  command 
)
override

◆ select() [2/2]

void Digikam::GPSLinkItemSelectionModel::select ( const QModelIndex &  index,
QItemSelectionModel::SelectionFlags  command 
)
override

◆ setLinkedItemSelectionModel()

void Digikam::GPSLinkItemSelectionModel::setLinkedItemSelectionModel ( QItemSelectionModel *const  selectionModel)

Member Data Documentation

◆ d_ptr

GPSLinkItemSelectionModelPrivate* const Digikam::GPSLinkItemSelectionModel::d_ptr
protected

Property Documentation

◆ linkedItemSelectionModel

QItemSelectionModel* Digikam::GPSLinkItemSelectionModel::linkedItemSelectionModel
readwrite

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