QAdvanced Item View  0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
 All Classes Functions Variables Enumerations Enumerator Properties Groups Pages
Functions
Utilities

Functions

template<class T >
qfilter_cast (QAbstractFilter *filter)
 
template<class T >
qfilter_cast (const QAbstractFilter *filter)
 
template<class T >
qsourcemodel_cast (const QModelIndex &index)
 
template<class T >
qsourcemodel_cast (QAbstractItemModel *model)
 
template<class T >
qsourcemodel_cast (const QAbstractItemModel *model)
 
void qMimeDataAddCsv (QMimeData *mimeData, QAdvancedTableView *view, int role)
 
void qMimeDataAddCsv (QMimeData *mimeData, QTableView *view, int role)
 
void qMimeDataAddHtml (QMimeData *mimeData, QAdvancedTableView *view, int role)
 
void qMimeDataAddHtml (QMimeData *mimeData, QTableView *view, int role)
 
void qMimeDataAddPlainText (QMimeData *mimeData, QAdvancedTableView *view, int role)
 
void qMimeDataAddPlainText (QMimeData *mimeData, QTableView *view, int role)
 
QPair< QModelIndex, QModelIndex > selectionEdges (QItemSelection selection)
 

Detailed Description

Function Documentation

template<class T >
T qfilter_cast ( QAbstractFilter filter)
inline

Returns the given filter cast to type T if filter is of type T; otherwise, 0 is returned.

Note
To make this function work correctly with custom filter, reimplement the type() function for each custom QAbstractFilter subclass.
template<class T >
T qfilter_cast ( const QAbstractFilter filter)
inline

Returns the given const filter cast to type T if filter is of type T; otherwise, 0 is returned.

Note
To make this function work correctly with custom filter, reimplement the type() function for each custom QAbstractFilter subclass.
void qMimeDataAddCsv ( QMimeData *  mimeData,
QAdvancedTableView view,
int  role 
)

Adds the 's selection as CSV data to the given QMimeData container mimeData.

void qMimeDataAddCsv ( QMimeData *  mimeData,
QTableView *  view,
int  role 
)

Adds the 's selection as CSV data to the given QMimeData container mimeData.

void qMimeDataAddHtml ( QMimeData *  mimeData,
QAdvancedTableView view,
int  role 
)

Adds the current 's selection as a HTML table to the given QMimeData container mimeData.

void qMimeDataAddHtml ( QMimeData *  mimeData,
QTableView *  view,
int  role 
)

Adds the current 's selection as a HTML table to the given QMimeData container mimeData.

void qMimeDataAddPlainText ( QMimeData *  mimeData,
QAdvancedTableView view,
int  role 
)

Adds the current 's selection as plain text the given QMimeData container mimeData.

void qMimeDataAddPlainText ( QMimeData *  mimeData,
QTableView *  view,
int  role 
)

Adds the current 's selection as plain text the given QMimeData container mimeData.

template<class T >
T qsourcemodel_cast ( const QModelIndex &  index)
inline

Returns the given model cast to type T if the model of the given index is of type T (or of a subclass); otherwise returns 0. If index is invalod then it will also return 0.

template<class T >
T qsourcemodel_cast ( QAbstractItemModel *  model)
inline

Returns the given model cast to type T if the model is of type T (or of a subclass); otherwise returns 0. If model is 0 then it will also return 0.

template<class T >
T qsourcemodel_cast ( const QAbstractItemModel *  model)
inline

Returns the given model cast to type T if the model is of type T (or of a subclass); otherwise returns 0. If model is 0 then it will also return 0.

QPair< QModelIndex, QModelIndex > selectionEdges ( QItemSelection  selection)

Returns a QModelIndex pair describing the top left and bottom right edges og the given selection.