summaryrefslogtreecommitdiffstats
path: root/src/imports/contacts/details/qdeclarativecontacttag_p.h
diff options
context:
space:
mode:
authorClaudio Brunelli <claudio.brunelli@nokia.com>2011-10-11 10:01:50 +0300
committerQt by Nokia <qt-info@nokia.com>2011-11-03 20:08:34 +0100
commitc4ce09f0bb806d64182fcc8354db2f89f3df4d1a (patch)
tree6a0c339b24cddc0b658fba90bbfa00fd76f07af6 /src/imports/contacts/details/qdeclarativecontacttag_p.h
parent05037d2a4a41813c71d75a52d10bcf0b2955bb45 (diff)
Remove dynamic properties in contacts QML binding
Remove metaobject based implementation of dynamic properties - moving details from metaobject to declarativecontact - individual details are supported but - list properties (for example phoneNumbers) are not yet supported Add separate QML elements for Thumbnail and Type Create QML elements for ContactDetails Thumbnail and Type Modify contactDetails signal fieldChanged (of each subclass) into valueChanged Move ContactType from QDeclarativeContact to QDeclarativeContactType (from Contact to Type in QML) Change name of signal detailsChanged to contactChanged Rename details into contactDetails in declarativeContact (contact in QML) Rename contactDetail valueChanged signal into contactDetails Create functions value, setValue, removeValue to manage contact detail fields Fix existing QML tests and created new ones Authors: Claudio Brunelli, Cristiano di Flora, Mikko Suonio Change-Id: I11ed9e7eae086e1e9d321705f357be2399db3b89 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Cristiano di Flora <cristiano.di-flora@nokia.com>
Diffstat (limited to 'src/imports/contacts/details/qdeclarativecontacttag_p.h')
-rw-r--r--src/imports/contacts/details/qdeclarativecontacttag_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/contacts/details/qdeclarativecontacttag_p.h b/src/imports/contacts/details/qdeclarativecontacttag_p.h
index 731ae0f29..0d5f7d6d8 100644
--- a/src/imports/contacts/details/qdeclarativecontacttag_p.h
+++ b/src/imports/contacts/details/qdeclarativecontacttag_p.h
@@ -51,7 +51,7 @@ QTCONTACTS_BEGIN_NAMESPACE
class QDeclarativeContactTag : public QDeclarativeContactDetail
{
Q_OBJECT
- Q_PROPERTY(QString tag READ tag WRITE setTag NOTIFY fieldsChanged)
+ Q_PROPERTY(QString tag READ tag WRITE setTag NOTIFY valueChanged)
Q_ENUMS(FieldType)
Q_CLASSINFO("DefaultProperty", "tag")
public:
@@ -63,7 +63,7 @@ public:
:QDeclarativeContactDetail(parent)
{
setDetail(QContactTag());
- connect(this, SIGNAL(fieldsChanged()), SIGNAL(valueChanged()));
+ connect(this, SIGNAL(valueChanged()), SIGNAL(detailChanged()));
}
ContactDetailType detailType() const
{
@@ -84,12 +84,12 @@ public:
{
if (!readOnly() && v != tag()) {
detail().setValue(QContactTag::FieldTag, v);
- emit fieldsChanged();
+ emit valueChanged();
}
}
QString tag() const {return detail().value(QContactTag::FieldTag);}
signals:
- void fieldsChanged();
+ void valueChanged();
};
QTCONTACTS_END_NAMESPACE