mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 04:53:53 +00:00
Provide method to return whole data vector from tablemimedata.
This commit is contained in:
parent
8b799683c1
commit
04287cb87a
2 changed files with 6 additions and 0 deletions
|
@ -62,3 +62,8 @@ std::string CSMWorld::TableMimeData::getIcon() const
|
|||
}
|
||||
return mUniversalId.begin()->getIcon(); //All objects are of the same type;
|
||||
}
|
||||
|
||||
std::vector< CSMWorld::UniversalId > CSMWorld::TableMimeData::getData() const
|
||||
{
|
||||
return mUniversalId;
|
||||
}
|
|
@ -23,6 +23,7 @@ namespace CSMWorld
|
|||
virtual QStringList formats() const;
|
||||
UniversalId getId(unsigned int index) const;
|
||||
std::string getIcon() const;
|
||||
std::vector<UniversalId> getData() const;
|
||||
|
||||
private:
|
||||
std::vector<UniversalId> mUniversalId;
|
||||
|
|
Loading…
Reference in a new issue