Merge branch 'master' of https://git.bukova.info/repos/git/prodejna
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user