diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-19 19:28:19 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-02-22 18:23:43 -0300 |
commit | e5624ded523a25b0b45b4e216ddb4dae38add50c (patch) | |
tree | 32627d54eebc7446e840747440846b4750d3fda1 /tests | |
parent | 03030ce1945075d9c32ab6ada75a45b7f7f906b6 (diff) |
Added QPixmap(QVariant).
Reviewed by Renato Araújo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtgui/qpixmap_test.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/qtgui/qpixmap_test.py b/tests/qtgui/qpixmap_test.py index ce6c1eaba..bc287f369 100644 --- a/tests/qtgui/qpixmap_test.py +++ b/tests/qtgui/qpixmap_test.py @@ -1,8 +1,8 @@ import unittest from helper import UsesQApplication -from PySide.QtGui import QPixmap -from PySide.QtCore import QVariant, QSize, QString +from PySide.QtGui import * +from PySide.QtCore import * class QPixmapTest(UsesQApplication): def testQVariantConstructor(self): @@ -17,6 +17,12 @@ class QPixmapTest(UsesQApplication): def testQStringConstructor(self): pixmap = QPixmap(QString("Testing!")) + def testQVariantConstructor(self): + v = QVariant(QPixmap()) + pixmap2 = QPixmap(v) + v = QVariant(QImage()) + pixmap2 = QPixmap(v) + if __name__ == '__main__': unittest.main() |