Introduced method to access display type.

actorid
Marek Kochanowicz 11 years ago
parent 5f3f867a10
commit 71b2fc1c70

@ -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;
}

@ -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;
};
}

Loading…
Cancel
Save