#include <sqlitemview.h>
Signals | |
| void | indexChanged () |
Public Member Functions | |
| SqlItemView (QWidget *parent=0) | |
| void | setModel (QAbstractItemModel *model) |
| Set the model and connect the GUI widgets to model's items. All previously generated GUI widgets are deleted and recreated again depending on the new model QSqlRecord structure. | |
| QAbstractItemModel * | model () |
| void | setCurrentIndex (int row, int column) |
| Set the current index for "item view". | |
| int | currentIndex () |
| int | currentColumn () |
| SqlItemView::SqlItemView | ( | QWidget * | parent = 0 |
) |
| void SqlItemView::setModel | ( | QAbstractItemModel * | model | ) |
Set the model and connect the GUI widgets to model's items. All previously generated GUI widgets are deleted and recreated again depending on the new model QSqlRecord structure.
| QAbstractItemModel * SqlItemView::model | ( | ) |
| void SqlItemView::setCurrentIndex | ( | int | row, | |
| int | column | |||
| ) |
Set the current index for "item view".
| row | is the row number starting from 0. Use model->currentIndex().row() from "real" indexes for it. |
| int SqlItemView::currentIndex | ( | ) |
| int SqlItemView::currentColumn | ( | ) |
| void SqlItemView::indexChanged | ( | ) | [signal] |
Emitted when there is a focus change in the m_mapper's widgets only. It's used in DataViewer for syncing BLOB preview and table view indexes.
1.5.5