FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
qtgui::ItemViewUtils Class Reference

Provides a collection of tools around QAbstractItemView. More...

#include <qttools/gui/item_view_utils.h>

Static Public Member Functions

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...
 

Detailed Description

Provides a collection of tools around QAbstractItemView.

Member Function Documentation

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
viewView in which to find selected rows
colColumn 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: