You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
315 B

#include "animaux.hpp"
Animaux::Animaux(QString name, QObject *parent)
: QObject{parent},
m_name{name}
{}
QString Animaux::name() const
{
return m_name;
}
void Animaux::setName(const QString &newName)
{
if (m_name == newName)
return;
m_name = newName;
emit nameChanged(m_name);
}