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 QItemSelectionRange & at (int i) const
 
const QItemSelectionRange & operator[] (int i) const
 
QItemSelectionRange & operator[] (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
 
QItemSelectionRange & first ()
 
const QItemSelectionRange & first () const
 
QItemSelectionRange & last ()
 
const QItemSelectionRange & last () const
 
void removeFirst ()
 
void removeLast ()
 
bool startsWith (const QItemSelectionRange &t) const
 
bool endsWith (const QItemSelectionRange &t) const
 
QList< QItemSelectionRange > mid (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)
 
QItemSelectionRange & front ()
 
const QItemSelectionRange & front () const
 
QItemSelectionRange & back ()
 
const QItemSelectionRange & back () const
 
void pop_front ()
 
void pop_back ()
 
bool empty () const
 
QList< QItemSelectionRange > & operator+= (const QList< QItemSelectionRange > &l)
 
QList< QItemSelectionRange > & operator+= (const QItemSelectionRange &t)
 
QList< QItemSelectionRange > operator+ (const QList< QItemSelectionRange > &l) const
 
QList< QItemSelectionRange > & operator<< (const QItemSelectionRange &t)
 
QList< QItemSelectionRange > & operator<< (const QList< QItemSelectionRange > &l)
 
QVector< QItemSelectionRange > toVector () const
 
QSet< QItemSelectionRange > toSet () const
 
std::list< QItemSelectionRange > toStdList () 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< QItemSelectionRange > fromVector (const QVector< QItemSelectionRange > &vector)
 
static QList< QItemSelectionRange > fromSet (const QSet< QItemSelectionRange > &set)
 
static QList< QItemSelectionRange > fromStdList (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_type * pointer
 
typedef const value_type * const_pointer
 
typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef qptrdiff difference_type
 
- Public Attributes inherited from QList< QItemSelectionRange >
QListData p
 
QListData::Data * d
 

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: