Tests synchronized with the boost python PySide.
This commit is contained in:
parent
84282e06ac
commit
3deada6b7e
14 changed files with 329 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import unittest
|
||||
|
||||
from PySide.QtGui import QPainter
|
||||
from PySide.QtGui import QPainter, QBrush, QLinearGradient
|
||||
from PySide.QtCore import QRect, Qt
|
||||
|
||||
class QPainterDrawText(unittest.TestCase):
|
||||
|
|
@ -26,6 +26,14 @@ class QPainterDrawText(unittest.TestCase):
|
|||
self.painter.drawText(rect, Qt.AlignCenter | Qt.TextWordWrap,
|
||||
self.text)
|
||||
|
||||
class SetBrushWithOtherArgs(unittest.TestCase):
|
||||
'''Using qpainter.setBrush with args other than QBrush'''
|
||||
|
||||
def testSetBrushGradient(self):
|
||||
painter = QPainter()
|
||||
gradient = QLinearGradient(0, 0, 0, 0)
|
||||
painter.setBrush(gradient)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue