Provides a collection of tools around QAbstractItemView.
More...
#include <qttools/gui/item_view_utils.h>
|
static QVector< int > | selectedRows (const QAbstractItemView *view, int col=-1) |
| Indexes, in the given column, of the rows selected in a view. More...
|
|
static void | selectRows (QAbstractItemView *view, const QVector< int > &rows) |
|
static int | mapRowFromSourceModel (const QSortFilterProxyModel *proxyModel, int srcRow) |
| Same as QSortFilterProxyModel::mapFromSource() but more concise. More...
|
|
static int | mapRowToSourceModel (const QSortFilterProxyModel *proxyModel, int proxyRow) |
| Same as QSortFilterProxyModel::mapToSource() but more concise. More...
|
|
Provides a collection of tools around QAbstractItemView.
int qtgui::ItemViewUtils::mapRowFromSourceModel |
( |
const QSortFilterProxyModel * |
proxyModel, |
|
|
int |
srcRow |
|
) |
| |
|
static |
Same as QSortFilterProxyModel::mapFromSource() but more concise.
int qtgui::ItemViewUtils::mapRowToSourceModel |
( |
const QSortFilterProxyModel * |
proxyModel, |
|
|
int |
proxyRow |
|
) |
| |
|
static |
Same as QSortFilterProxyModel::mapToSource() but more concise.
QVector< int > qtgui::ItemViewUtils::selectedRows |
( |
const QAbstractItemView * |
view, |
|
|
int |
col = -1 |
|
) |
| |
|
static |
Indexes, in the given column, of the rows selected in a view.
- Parameters
-
view | View in which to find selected rows |
col | Column index. If col == -1 then col is ignored |
void qtgui::ItemViewUtils::selectRows |
( |
QAbstractItemView * |
view, |
|
|
const QVector< int > & |
rows |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: