mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
155cca0c9a
Fix folder name. Keep Qt optional. Move open dialogue from doc to tools. Rename 'load' to 'open'. Deleted wrong comment.
51 lines
833 B
C++
51 lines
833 B
C++
#include "esmfile.hpp"
|
|
|
|
EsmFile::EsmFile(QString fileName, ModelItem *parent)
|
|
: ModelItem(parent)
|
|
{
|
|
mFileName = fileName;
|
|
mSize = 0;
|
|
mVersion = 0.0f;
|
|
}
|
|
|
|
void EsmFile::setFileName(const QString &fileName)
|
|
{
|
|
mFileName = fileName;
|
|
}
|
|
|
|
void EsmFile::setAuthor(const QString &author)
|
|
{
|
|
mAuthor = author;
|
|
}
|
|
|
|
void EsmFile::setSize(const int size)
|
|
{
|
|
mSize = size;
|
|
}
|
|
|
|
void EsmFile::setDates(const QDateTime &modified, const QDateTime &accessed)
|
|
{
|
|
mModified = modified;
|
|
mAccessed = accessed;
|
|
}
|
|
|
|
void EsmFile::setVersion(float version)
|
|
{
|
|
mVersion = version;
|
|
}
|
|
|
|
void EsmFile::setPath(const QString &path)
|
|
{
|
|
mPath = path;
|
|
}
|
|
|
|
void EsmFile::setMasters(const QStringList &masters)
|
|
{
|
|
mMasters = masters;
|
|
}
|
|
|
|
void EsmFile::setDescription(const QString &description)
|
|
{
|
|
mDescription = description;
|
|
}
|