KDEUI
#include <klinkitemselectionmodel.h>
Public Member Functions | |
KLinkItemSelectionModel (QAbstractItemModel *targetModel, QItemSelectionModel *linkedItemSelectionModel, QObject *parent=0) | |
~KLinkItemSelectionModel () | |
void | select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command) |
void | select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command) |
Protected Attributes | |
KLinkItemSelectionModelPrivate *const | d_ptr |
Detailed Description
Makes it possible to share a selection in multiple views which do not have the same source model.
Although 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.
See also kdelibs/kdeui/tests/proxymodeltestapp/proxyitemselectionwidget.cpp.
- Since
- 4.5
Definition at line 95 of file klinkitemselectionmodel.h.
Constructor & Destructor Documentation
KLinkItemSelectionModel::KLinkItemSelectionModel | ( | QAbstractItemModel * | targetModel, |
QItemSelectionModel * | linkedItemSelectionModel, | ||
QObject * | parent = 0 |
||
) |
Constructor.
Definition at line 68 of file klinkitemselectionmodel.cpp.
KLinkItemSelectionModel::~KLinkItemSelectionModel | ( | ) |
Definition at line 77 of file klinkitemselectionmodel.cpp.
Member Function Documentation
void KLinkItemSelectionModel::select | ( | const QModelIndex & | index, |
QItemSelectionModel::SelectionFlags | command | ||
) |
Definition at line 82 of file klinkitemselectionmodel.cpp.
void KLinkItemSelectionModel::select | ( | const QItemSelection & | selection, |
QItemSelectionModel::SelectionFlags | command | ||
) |
Definition at line 134 of file klinkitemselectionmodel.cpp.
Member Data Documentation
|
protected |
Definition at line 108 of file klinkitemselectionmodel.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:17 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.