Snapshot/SnapshotRegionGrabber.py

branch
maintenance
changeset 5983
a604749f4fcc
parent 5736
000ea446ff4b
child 6048
82ad8ec9548c
equal deleted inserted replaced
5982:af0d2f9dfa21 5983:a604749f4fcc
32 painter.save() 32 painter.save()
33 painter.setClipRegion(clip) 33 painter.setClipRegion(clip)
34 painter.setPen(Qt.NoPen) 34 painter.setPen(Qt.NoPen)
35 painter.setBrush(outline) 35 painter.setBrush(outline)
36 painter.drawRect(rect) 36 painter.drawRect(rect)
37 if fill.isValid(): 37 if fill is not None and fill.isValid():
38 painter.setClipping(False) 38 painter.setClipping(False)
39 painter.setBrush(fill or QColor()) 39 painter.setBrush(fill)
40 painter.drawRect(rect.adjusted(1, 1, -1, -1)) 40 painter.drawRect(rect.adjusted(1, 1, -1, -1))
41 painter.restore() 41 painter.restore()
42 42
43 43
44 class SnapshotRegionGrabber(QWidget): 44 class SnapshotRegionGrabber(QWidget):

eric ide

mercurial