OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
CSVWorld::NastyTableModelHack Class Reference

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

#include <util.hpp>

Inheritance diagram for CSVWorld::NastyTableModelHack:
Collaboration diagram for CSVWorld::NastyTableModelHack:

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

QAbstractItemModelmModel
 
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
QVariant CSVWorld::NastyTableModelHack::getData ( ) const

Here is the caller graph for this function:

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

QVariant CSVWorld::NastyTableModelHack::mData
private
QAbstractItemModel& CSVWorld::NastyTableModelHack::mModel
private

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