1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-13 19:36:44 +00:00

Introduced method to access display type.

This commit is contained in:
Marek Kochanowicz 2014-02-13 10:54:39 +01:00
parent 5f3f867a10
commit 71b2fc1c70
2 changed files with 8 additions and 0 deletions

View file

@ -189,3 +189,8 @@ CSMWorld::IdTable::Reordering CSMWorld::IdTable::getReordering() const
{ {
return mReordering; return mReordering;
} }
CSMWorld::ColumnBase::Display CSMWorld::IdTable::getColumnDisplay (int index) const
{
return mIdCollection->getColumn(index).mDisplayType;
}

View file

@ -11,6 +11,7 @@
namespace CSMWorld namespace CSMWorld
{ {
class CollectionBase; class CollectionBase;
class ColumnsBase;
class RecordBase; class RecordBase;
class IdTable : public QAbstractItemModel class IdTable : public QAbstractItemModel
@ -86,6 +87,8 @@ namespace CSMWorld
/// given in \a newOrder (baseIndex+newOrder[0] specifies the new index of row baseIndex). /// given in \a newOrder (baseIndex+newOrder[0] specifies the new index of row baseIndex).
Reordering getReordering() const; Reordering getReordering() const;
CSMWorld::ColumnBase::Display getColumnDisplay(int index) const;
}; };
} }