SqlItemView Class Reference

Display one record in one form view. It provides set of generic line edits for current model index. User can change model indexes by GUI buttons. More...

#include <sqlitemview.h>

List of all members.

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 ()


Detailed Description

Display one record in one form view. It provides set of generic line edits for current model index. User can change model indexes by GUI buttons.

Author:
Petr Vanek <petr@scribus.info>

Constructor & Destructor Documentation

SqlItemView::SqlItemView ( QWidget *  parent = 0  ) 


Member Function Documentation

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

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


The documentation for this class was generated from the following files:

Generated on Sat Jul 26 09:05:56 2008 for Sqliteman by  doxygen 1.5.5