Added country combo to addressbook. Addressbook plugin depends on Countryregister which must be loaded first.
This commit is contained in:
@@ -106,6 +106,19 @@ void AddressbookData::setId(int id)
|
||||
m_id = id;
|
||||
}
|
||||
|
||||
QSharedPointer<QObject> AddressbookData::country() const
|
||||
{
|
||||
return m_country;
|
||||
}
|
||||
|
||||
void AddressbookData::setCountry(const QSharedPointer<QObject> &country)
|
||||
{
|
||||
if (qobject_cast<CountryData*>(country.data()) != NULL)
|
||||
{
|
||||
m_country = qSharedPointerDynamicCast<CountryData, QObject>(country);
|
||||
}
|
||||
}
|
||||
|
||||
bool AddressbookData::eq(ComboItem *other)
|
||||
{
|
||||
AddressbookData *adb = qobject_cast<AddressbookData*>(other);
|
||||
|
||||
Reference in New Issue
Block a user