OpenMW
|
Getting the data out of an editor widget. More...
#include <util.hpp>
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 |
Getting the data out of an editor widget.
< Really, Qt? Really?
CSVWorld::NastyTableModelHack::NastyTableModelHack | ( | QAbstractItemModel & | model | ) |
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 |
int CSVWorld::NastyTableModelHack::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
bool CSVWorld::NastyTableModelHack::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
|
private |
|
private |