portability: Support PyQt4 4.4.x
commit6c37c66df584ae16aa463c368682581e198c6ca2
authorDavid Aguilar <davvid@gmail.com>
Wed, 21 Mar 2012 06:45:57 +0000 (20 23:45 -0700)
committerDavid Aguilar <davvid@gmail.com>
Wed, 21 Mar 2012 06:45:57 +0000 (20 23:45 -0700)
tree881857197e7018ac02220fea3393f27434af0898
parent56f328c8c9fbd78e604d23661006b2789cc1b6a4
portability: Support PyQt4 4.4.x

Older versions of PyQt4 do not have QTextDocument.setDocumentMargin()
nor QGraphicsItem.mapRectToScene().

Provide a python implementation for mapRectToScene() and suppress
errors when calling the non-existent setDocumentMargin().

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/qtcompat.py
cola/widgets/completion.py