1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 11:53:53 +00:00

Provide method to return whole data vector from tablemimedata.

This commit is contained in:
Marek Kochanowicz 2014-02-04 19:42:52 +01:00
parent 8b799683c1
commit 04287cb87a
2 changed files with 6 additions and 0 deletions

View file

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

View file

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