OpenMW
Public Member Functions | Private Attributes
CSVWorld::NastyTableModelHack Class Reference

Getting the data out of an editor widget. More...

#include <util.hpp>

List of all members.

Public Member Functions

 NastyTableModelHack (QAbstractItemModel &model)
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QVariant getData () const

Private Attributes

QAbstractItemModel & mModel
QVariant mData

Detailed Description

Getting the data out of an editor widget.

< Really, Qt? Really?


Constructor & Destructor Documentation

CSVWorld::NastyTableModelHack::NastyTableModelHack ( QAbstractItemModel &  model)

Member Function Documentation

int CSVWorld::NastyTableModelHack::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant CSVWorld::NastyTableModelHack::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
int CSVWorld::NastyTableModelHack::rowCount ( const QModelIndex &  parent = QModelIndex()) const
bool CSVWorld::NastyTableModelHack::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Member Data Documentation

QAbstractItemModel& CSVWorld::NastyTableModelHack::mModel [private]

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