QItemSelectionModel Class Reference

#include <qitemselectionmodel.h>

Class Description

Definition at line 151 of file qitemselectionmodel.h.

+ Inheritance diagram for QItemSelectionModel:

Public Types

enum  SelectionFlag {
  NoUpdate = 0x0000, Clear = 0x0001, Select = 0x0002, Deselect = 0x0004,
  Toggle = 0x0008, Current = 0x0010, Rows = 0x0020, Columns = 0x0040,
  SelectCurrent = Select | Current, ToggleCurrent = Toggle | Current, ClearAndSelect = Clear | Select
}
 

Public Slots

void setCurrentIndex (const QModelIndex &index, QItemSelectionModel::SelectionFlags command)
 
virtual void select (const QModelIndex &index, QItemSelectionModel::SelectionFlags command)
 
virtual void select (const QItemSelection &selection, QItemSelectionModel::SelectionFlags command)
 
virtual void clear ()
 
virtual void reset ()
 
void clearSelection ()
 
- Public Slots inherited from QObject
void deleteLater ()
 

Signals

void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
void currentChanged (const QModelIndex &current, const QModelIndex &previous)
 
void currentRowChanged (const QModelIndex &current, const QModelIndex &previous)
 
void currentColumnChanged (const QModelIndex &current, const QModelIndex &previous)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QItemSelectionModel (QAbstractItemModel *model)
 
 QItemSelectionModel (QAbstractItemModel *model, QObject *parent)
 
virtual ~QItemSelectionModel ()
 
QModelIndex currentIndex () const
 
bool isSelected (const QModelIndex &index) const
 
bool isRowSelected (int row, const QModelIndex &parent) const
 
bool isColumnSelected (int column, const QModelIndex &parent) const
 
bool rowIntersectsSelection (int row, const QModelIndex &parent) const
 
bool columnIntersectsSelection (int column, const QModelIndex &parent) const
 
bool hasSelection () const
 
QModelIndexList selectedIndexes () const
 
QModelIndexList selectedRows (int column=0) const
 
QModelIndexList selectedColumns (int row=0) const
 
const QItemSelection selection () const
 
const QAbstractItemModelmodel () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

 QItemSelectionModel (QItemSelectionModelPrivate &dd, QAbstractItemModel *model)
 
void emitSelectionChanged (const QItemSelection &newSelection, const QItemSelection &oldSelection)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Member Enumeration Documentation

Enumerator
NoUpdate 
Clear 
Select 
Deselect 
Toggle 
Current 
Rows 
Columns 
SelectCurrent 
ToggleCurrent 
ClearAndSelect 

Definition at line 159 of file qitemselectionmodel.h.

Constructor & Destructor Documentation

QItemSelectionModel ( QAbstractItemModel model)
explicit
QItemSelectionModel ( QAbstractItemModel model,
QObject parent 
)
explicit
virtual ~QItemSelectionModel ( )
virtual
QItemSelectionModel ( QItemSelectionModelPrivate &  dd,
QAbstractItemModel model 
)
protected

Member Function Documentation

QModelIndex currentIndex ( ) const
bool isSelected ( const QModelIndex index) const
bool isRowSelected ( int  row,
const QModelIndex parent 
) const
bool isColumnSelected ( int  column,
const QModelIndex parent 
) const
bool rowIntersectsSelection ( int  row,
const QModelIndex parent 
) const
bool columnIntersectsSelection ( int  column,
const QModelIndex parent 
) const
bool hasSelection ( ) const
QModelIndexList selectedIndexes ( ) const
QModelIndexList selectedRows ( int  column = 0) const
QModelIndexList selectedColumns ( int  row = 0) const
const QItemSelection selection ( ) const
const QAbstractItemModel* model ( ) const
void setCurrentIndex ( const QModelIndex index,
QItemSelectionModel::SelectionFlags  command 
)
slot
virtual void select ( const QModelIndex index,
QItemSelectionModel::SelectionFlags  command 
)
virtualslot
virtual void select ( const QItemSelection selection,
QItemSelectionModel::SelectionFlags  command 
)
virtualslot
virtual void clear ( )
virtualslot
virtual void reset ( )
virtualslot
void clearSelection ( )
slot
void selectionChanged ( const QItemSelection selected,
const QItemSelection deselected 
)
signal
void currentChanged ( const QModelIndex current,
const QModelIndex previous 
)
signal
void currentRowChanged ( const QModelIndex current,
const QModelIndex previous 
)
signal
void currentColumnChanged ( const QModelIndex current,
const QModelIndex previous 
)
signal
void emitSelectionChanged ( const QItemSelection newSelection,
const QItemSelection oldSelection 
)
protected

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