-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperson.cpp
54 lines (46 loc) · 1.13 KB
/
person.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "person.h"
Person::Person()
{
// emit add(*this);
}
Person::Person(QString name, QString surname, QString query){
this->name = name;
this->surname = surname;
this->query = query;
// emit add(*this);
}
Person::Person(QString name, QString surname, QString query, QString parents){
this->name = name;
this->surname = surname;
this->query = query;
this->parents = parents;
// emit add(*this);
}
Person::Person(QString name, QString surname, QString query, QString parents, QDate birthDate){
this->name = name;
this->surname = surname;
this->query = query;
this->parents = parents;
this->birthDate = birthDate;
// emit add(*this);
}
Person::Person(QString name, QString surname, QString query, QString parents, QDate birthDate, QString picturePath) {
this->name = name;
this->surname = surname;
this->query = query;
this->parents = parents;
this->birthDate = birthDate;
this->picture = new QImage(picturePath);
// emit add(*this);
}
QString Person::getName(){
return name;
}
QString Person::getSurname()
{
return surname;
}
QImage* Person::getPicture()
{
return picture;
}