QItemSelection Class Reference

QItemSelection Class Reference

#include <qitemselectionmodel.h>

Class Description

Definition at line 231 of file qitemselectionmodel.h.

+ Inheritance diagram for QItemSelection:

Public Member Functions

 QItemSelection ()
 
 QItemSelection (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void select (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
bool contains (const QModelIndex &index) const
 
QModelIndexList indexes () const
 
void merge (const QItemSelection &other, QItemSelectionModel::SelectionFlags command)
 
- Public Member Functions inherited from QList< QItemSelectionRange >
 QList ()
 
 QList (const QList< QItemSelectionRange > &l)
 
 ~QList ()
 
QList< QItemSelectionRange > & operator= (const QList< QItemSelectionRange > &l)
 
void swap (QList< QItemSelectionRange > &other)
 
void swap (int i, int j)
 
bool operator== (const QList< QItemSelectionRange > &l) const
 
bool operator!= (const QList< QItemSelectionRange > &l) const
 
int size () const
 
void detach ()
 
void detachShared ()
 
bool isDetached () const
 
void setSharable (bool sharable)
 
bool isSharedWith (const QList< QItemSelectionRange > &other) const
 
bool isEmpty () const
 
void clear ()
 
const QItemSelectionRangeat (int i) const
 
const QItemSelectionRangeoperator[] (int i) const
 
QItemSelectionRangeoperator[] (int i)
 
void reserve (int size)
 
void append (const QItemSelectionRange &t)
 
void append (const QList< QItemSelectionRange > &t)
 
void prepend (const QItemSelectionRange &t)
 
void insert (int i, const QItemSelectionRange &t)
 
iterator insert (iterator before, const QItemSelectionRange &t)
 
void replace (int i, const QItemSelectionRange &t)
 
void removeAt (int i)
 
int removeAll (const QItemSelectionRange &t)
 
bool removeOne (const QItemSelectionRange &t)
 
QItemSelectionRange takeAt (int i)
 
QItemSelectionRange takeFirst ()
 
QItemSelectionRange takeLast ()
 
void move (int from, int to)
 
int indexOf (const QItemSelectionRange &t, int from=0) const
 
int lastIndexOf (const QItemSelectionRange &t, int from=-1) const
 
QBool contains (const QItemSelectionRange &t) const
 
int count (const QItemSelectionRange &t) const
 
int count () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator constBegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator constEnd () const
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
int length () const
 
QItemSelectionRangefirst ()
 
const QItemSelectionRangefirst () const
 
QItemSelectionRangelast ()
 
const QItemSelectionRangelast () const
 
void removeFirst ()
 
void removeLast ()
 
bool startsWith (const QItemSelectionRange &t) const
 
bool endsWith (const QItemSelectionRange &t) const
 
QList< QItemSelectionRangemid (int pos, int length=-1) const
 
QItemSelectionRange value (int i) const
 
QItemSelectionRange value (int i, const QItemSelectionRange &defaultValue) const
 
void push_back (const QItemSelectionRange &t)
 
void push_front (const QItemSelectionRange &t)
 
QItemSelectionRangefront ()
 
const QItemSelectionRangefront () const
 
QItemSelectionRangeback ()
 
const QItemSelectionRangeback () const
 
void pop_front ()
 
void pop_back ()
 
bool empty () const
 
QList< QItemSelectionRange > & operator+= (const QList< QItemSelectionRange > &l)
 
QList< QItemSelectionRange > & operator+= (const QItemSelectionRange &t)
 
QList< QItemSelectionRangeoperator+ (const QList< QItemSelectionRange > &l) const
 
QList< QItemSelectionRange > & operator<< (const QItemSelectionRange &t)
 
QList< QItemSelectionRange > & operator<< (const QList< QItemSelectionRange > &l)
 
QVector< QItemSelectionRangetoVector () const
 
QSet< QItemSelectionRangetoSet () const
 
std::list< QItemSelectionRangetoStdList () const
 

Static Public Member Functions

static void split (const QItemSelectionRange &range, const QItemSelectionRange &other, QItemSelection *result)
 
- Static Public Member Functions inherited from QList< QItemSelectionRange >
static QList< QItemSelectionRangefromVector (const QVector< QItemSelectionRange > &vector)
 
static QList< QItemSelectionRangefromSet (const QSet< QItemSelectionRange > &set)
 
static QList< QItemSelectionRangefromStdList (const std::list< QItemSelectionRange > &list)
 

Additional Inherited Members

- Public Types inherited from QList< QItemSelectionRange >
typedef iterator Iterator
 
typedef const_iterator ConstIterator
 
typedef int size_type
 
typedef QItemSelectionRange value_type
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef qptrdiff difference_type
 
- Public Attributes inherited from QList< QItemSelectionRange >
QListData p
 
QListData::Datad
 

Constructor & Destructor Documentation

QItemSelection ( )
inline

Definition at line 234 of file qitemselectionmodel.h.

234 {}
QItemSelection ( const QModelIndex topLeft,
const QModelIndex bottomRight 
)

Member Function Documentation

void select ( const QModelIndex topLeft,
const QModelIndex bottomRight 
)
bool contains ( const QModelIndex index) const
QModelIndexList indexes ( ) const
void merge ( const QItemSelection other,
QItemSelectionModel::SelectionFlags  command 
)
static void split ( const QItemSelectionRange range,
const QItemSelectionRange other,
QItemSelection result 
)
static

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