Revision 9e2d71d6
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
tests/models.cpp | ||
---|---|---|
}
|
||
|
||
|
||
double Article::getPrice() const
|
||
{
|
||
return price;
|
||
}
|
||
|
||
void Article::setPrice(double value)
|
||
{
|
||
price = value;
|
||
}
|
||
|
||
QString Article::getName() const
|
||
{
|
||
return name;
|
||
}
|
||
|
||
void Article::setName(const QString &value)
|
||
{
|
||
name = value;
|
||
}
|
||
|
||
Article::~Article() {
|
||
|
||
}
|
||
|
||
Article::Article() {
|
||
this->price = 0.0;
|
||
}
|
||
|
||
Article::Article(double price, QString name) {
|
||
this->price = price;
|
||
this->name = name;
|
||
}
|
Auch abrufbar als: Unified diff
basic test