1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 09:36:37 +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

@ -188,4 +188,9 @@ void CSMWorld::IdTable::reorderRows (int baseIndex, const std::vector<int>& newO
CSMWorld::IdTable::Reordering CSMWorld::IdTable::getReordering() const
{
return mReordering;
}
CSMWorld::ColumnBase::Display CSMWorld::IdTable::getColumnDisplay (int index) const
{
return mIdCollection->getColumn(index).mDisplayType;
}

View File

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