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

#include <nestedtableproxymodel.hpp>

Inheritance diagram for CSMWorld::NestedTableProxyModel:
Collaboration diagram for CSMWorld::NestedTableProxyModel:

Public Member Functions

 NestedTableProxyModel (const QModelIndex &parent, ColumnBase::Display displayType, IdTree *parentModel)
 
std::string getParentId () const
 
int getParentColumn () const
 
CSMWorld::IdTreemodel () const
 
virtual QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
 
virtual QModelIndex mapToSource (const QModelIndex &proxyIndex) const
 
virtual int rowCount (const QModelIndex &parent) const
 
virtual int columnCount (const QModelIndex &parent) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
virtual QModelIndex parent (const QModelIndex &index) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 

Private Slots

void forwardRowsAboutToInserted (const QModelIndex &parent, int first, int last)
 
void forwardRowsInserted (const QModelIndex &parent, int first, int last)
 
void forwardRowsAboutToRemoved (const QModelIndex &parent, int first, int last)
 
void forwardRowsRemoved (const QModelIndex &parent, int first, int last)
 
void forwardResetStart (const QString &id)
 
void forwardResetEnd (const QString &id)
 
void forwardDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 

Private Member Functions

void setupHeaderVectors (ColumnBase::Display columnId)
 
bool indexIsParent (const QModelIndex &index)
 

Private Attributes

const int mParentColumn
 
IdTreemMainModel
 
std::string mId
 

Constructor & Destructor Documentation

CSMWorld::NestedTableProxyModel::NestedTableProxyModel ( const QModelIndex &  parent,
ColumnBase::Display  displayType,
CSMWorld::IdTree parentModel 
)

Here is the call graph for this function:

Member Function Documentation

int CSMWorld::NestedTableProxyModel::columnCount ( const QModelIndex &  parent) const
virtual

Here is the caller graph for this function:

QVariant CSMWorld::NestedTableProxyModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual
Qt::ItemFlags CSMWorld::NestedTableProxyModel::flags ( const QModelIndex &  index) const
virtual
void CSMWorld::NestedTableProxyModel::forwardDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
privateslot

Here is the caller graph for this function:

void CSMWorld::NestedTableProxyModel::forwardResetEnd ( const QString &  id)
privateslot

Here is the caller graph for this function:

void CSMWorld::NestedTableProxyModel::forwardResetStart ( const QString &  id)
privateslot

Here is the caller graph for this function:

void CSMWorld::NestedTableProxyModel::forwardRowsAboutToInserted ( const QModelIndex &  parent,
int  first,
int  last 
)
privateslot

Here is the caller graph for this function:

void CSMWorld::NestedTableProxyModel::forwardRowsAboutToRemoved ( const QModelIndex &  parent,
int  first,
int  last 
)
privateslot

Here is the caller graph for this function:

void CSMWorld::NestedTableProxyModel::forwardRowsInserted ( const QModelIndex &  parent,
int  first,
int  last 
)
privateslot

Here is the caller graph for this function:

void CSMWorld::NestedTableProxyModel::forwardRowsRemoved ( const QModelIndex &  parent,
int  first,
int  last 
)
privateslot

Here is the caller graph for this function:

int CSMWorld::NestedTableProxyModel::getParentColumn ( ) const
std::string CSMWorld::NestedTableProxyModel::getParentId ( ) const
QVariant CSMWorld::NestedTableProxyModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

Here is the caller graph for this function:

QModelIndex CSMWorld::NestedTableProxyModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual
bool CSMWorld::NestedTableProxyModel::indexIsParent ( const QModelIndex &  index)
private
QModelIndex CSMWorld::NestedTableProxyModel::mapFromSource ( const QModelIndex &  sourceIndex) const
virtual
QModelIndex CSMWorld::NestedTableProxyModel::mapToSource ( const QModelIndex &  proxyIndex) const
virtual
CSMWorld::IdTree * CSMWorld::NestedTableProxyModel::model ( ) const
QModelIndex CSMWorld::NestedTableProxyModel::parent ( const QModelIndex &  index) const
virtual
int CSMWorld::NestedTableProxyModel::rowCount ( const QModelIndex &  parent) const
virtual
bool CSMWorld::NestedTableProxyModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual
void CSMWorld::NestedTableProxyModel::setupHeaderVectors ( ColumnBase::Display  columnId)
private

Member Data Documentation

std::string CSMWorld::NestedTableProxyModel::mId
private
IdTree* CSMWorld::NestedTableProxyModel::mMainModel
private
const int CSMWorld::NestedTableProxyModel::mParentColumn
private

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