PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 298 - Contact subtype not correctly set
: Contact subtype not correctly set
Status: CLOSED INVALID
Product: PySide Mobility
Classification: Unclassified
Component: Contacts
: 0.1.0
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-08-16 06:06 EEST by Matti Airas
Modified: 2011-01-21 15:44 EET (History)
10 users (show)

See Also:


Attachments
Contacts c++ example (1.15 KB, text/x-c++src)
2010-11-08 17:51 EET, Willer Moreira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Airas 2010-08-16 06:06:36 EEST
(Filing this under PySide component since we don't have a component of our own
for QtMobility.)

Bug reported on the mailing list by Luca Donaggio <donaggio@gmail.com>:

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))
Comment 1 renato filho 2010-09-21 15:31:13 EEST
changed bug product
Comment 2 Willer Moreira 2010-11-08 17:51:40 EET
Created attachment 139 [details]
Contacts c++ example

It's not a problem with pyside-mobility. I translated your code to
QtMobility/C++ (attached) and the same problem occurs.

I'll file a bug for this in QtMobility bugzilla.
Comment 3 Willer Moreira 2010-11-08 18:45:45 EET
Bug report @ QtMobility's bugzilla: 
http://bugreports.qt.nokia.com/browse/QTMOBILITY-698

Marking the bug as RESOLVED INVALID.
Comment 4 renato filho 2011-01-21 15:44:37 EET
release beta4