This commit is contained in:
2016-02-13 21:52:33 +01:00
19 changed files with 337 additions and 9 deletions
+14
View File
@@ -1,3 +1,4 @@
#include <data/comboitem.h>
#include "person.h"
Person::Person()
@@ -30,6 +31,19 @@ void Person::setLastName(const QString &value)
{
lastName = value;
}
QSharedPointer<QObject> Person::address() const
{
return m_address;
}
void Person::setAddress(const QSharedPointer<QObject> &address)
{
if (qobject_cast<Address*>(address.data()) != NULL)
{
m_address = qSharedPointerDynamicCast<Address, QObject>(address);
}
}