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:
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…
Reference in New Issue
Block a user