add setters
This commit is contained in:
@@ -50,6 +50,41 @@ QList<Step> Path::getStep() const
|
||||
return step;
|
||||
}
|
||||
|
||||
void Path::setCity(const QString &newCity)
|
||||
{
|
||||
city = newCity;
|
||||
}
|
||||
|
||||
void Path::setDepartement(int newDepartement)
|
||||
{
|
||||
departement = newDepartement;
|
||||
}
|
||||
|
||||
void Path::setName(const QString &newName)
|
||||
{
|
||||
name = newName;
|
||||
}
|
||||
|
||||
void Path::setDifficulty(unsigned int newDifficulty)
|
||||
{
|
||||
difficulty = newDifficulty;
|
||||
}
|
||||
|
||||
void Path::setDuration(float newDuration)
|
||||
{
|
||||
duration = newDuration;
|
||||
}
|
||||
|
||||
void Path::setLength(float newLength)
|
||||
{
|
||||
length = newLength;
|
||||
}
|
||||
|
||||
void Path::setImage(const QString &newImage)
|
||||
{
|
||||
image = newImage;
|
||||
}
|
||||
|
||||
Path::Path(QFile *file){
|
||||
if (!file->open(QIODevice::ReadOnly)) {
|
||||
qWarning() << "Could not open file:" << file->errorString();
|
||||
|
||||
Reference in New Issue
Block a user