mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 07:36:41 +00:00
Introduced method to access display type.
This commit is contained in:
parent
5f3f867a10
commit
71b2fc1c70
2 changed files with 8 additions and 0 deletions
|
@ -188,4 +188,9 @@ void CSMWorld::IdTable::reorderRows (int baseIndex, const std::vector<int>& newO
|
||||||
CSMWorld::IdTable::Reordering CSMWorld::IdTable::getReordering() const
|
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;
|
||||||
}
|
}
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue