digiKam
|
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 |
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.
Digikam::GPSLinkItemSelectionModel::GPSLinkItemSelectionModel | ( | QAbstractItemModel *const | targetModel, |
QItemSelectionModel *const | linkedItemSelectionModel, | ||
QObject *const | parent = nullptr |
||
) |
References setLinkedItemSelectionModel().
|
explicit |
|
override |
References d_ptr.
QItemSelectionModel * Digikam::GPSLinkItemSelectionModel::linkedItemSelectionModel | ( | ) | const |
|
signal |
Referenced by setLinkedItemSelectionModel().
|
override |
|
override |
void Digikam::GPSLinkItemSelectionModel::setLinkedItemSelectionModel | ( | QItemSelectionModel *const | selectionModel | ) |
References linkedItemSelectionModelChanged().
Referenced by GPSLinkItemSelectionModel().
|
protected |
Referenced by ~GPSLinkItemSelectionModel().
|
readwrite |