mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 08:53:52 +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;
|
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;
|
virtual QStringList formats() const;
|
||||||
UniversalId getId(unsigned int index) const;
|
UniversalId getId(unsigned int index) const;
|
||||||
std::string getIcon() const;
|
std::string getIcon() const;
|
||||||
|
std::vector<UniversalId> getData() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::vector<UniversalId> mUniversalId;
|
std::vector<UniversalId> mUniversalId;
|
||||||
|
|
Loading…
Reference in a new issue