Hi,

setting the subtype of a contact to QContactPhoneNumber.SubTypeFax doesn't
work in Maemo 5 Fremantle: the label of the contact detail is "Phone" and
not "Fax" within the N900 addressbook (for contacts manually created from
the addressbook itself, the label is correctly set to "Fax").
I'm not sure if it's a problem with PySide or the underlying version of
QtMobility, but a quick search on QtMobility's bugzilla doesn't return any
related issue.

The following code snippet will reproduce the problem:

                from QtMobility.Contacts import *

                myconman = QContactManager(None)
                utcon = QContact()

                utconname = QContactName()
                utconname.setFirstName(u'Example Contact')
                utcon.saveDetail(utconname)

                utconnum = QContactPhoneNumber()
                utconnum.setContexts(QContactDetail.ContextHome)
                utconnum.setSubTypes(QContactPhoneNumber.SubTypeLandline)
                utconnum.setNumber(u'123456789')
                utcon.saveDetail(utconnum)

                utconfax = QContactPhoneNumber()
                utconfax.setContexts(QContactDetail.ContextHome)
                utconfax.setSubTypes(QContactPhoneNumber.SubTypeFax)
                utconfax.setNumber(u'987654321')
                utcon.saveDetail(utconfax)

                myconman.saveContact(myconman.compatibleContact(utcon))


-- 
Luca Donaggio
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to