diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-10 13:05:24 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-02-10 14:07:56 -0300 |
commit | 42c9f80b06f3255316b2f08e2edd8624987b9bef (patch) | |
tree | fafd69e33e4c3645ffa227c4e1b2804546219f79 | |
parent | bda10df1da58fc19c527596b5c259ff41b4a4953 (diff) | |
download | pyside-42c9f80b06f3255316b2f08e2edd8624987b9bef.tar.gz pyside-42c9f80b06f3255316b2f08e2edd8624987b9bef.tar.xz pyside-42c9f80b06f3255316b2f08e2edd8624987b9bef.zip |
Added QCursor test. It is related to bug #630.
Bug #630 - Fails to resolve overload for QCursor(QBitmap, QBitmap, int, int)
http://bugs.openbossa.org/show_bug.cgi?id=630
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | tests/QtGui/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtGui/qcursor_test.py | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt index c7505c2..d22c67e 100644 --- a/tests/QtGui/CMakeLists.txt +++ b/tests/QtGui/CMakeLists.txt @@ -56,6 +56,7 @@ PYSIDE_TEST(qapplication_singleton_test.py) PYSIDE_TEST(qapp_test.py) PYSIDE_TEST(qbrush_test.py) PYSIDE_TEST(qcolor_test.py) +PYSIDE_TEST(qcursor_test.py) PYSIDE_TEST(qaction_test.py) PYSIDE_TEST(qdatastream_gui_operators_test.py) PYSIDE_TEST(qdynamic_signal.py) diff --git a/tests/QtGui/qcursor_test.py b/tests/QtGui/qcursor_test.py new file mode 100644 index 0000000..ec758d4 --- /dev/null +++ b/tests/QtGui/qcursor_test.py @@ -0,0 +1,16 @@ +'''Test for Bug 630 - Fails to resolve overload for QCursor(QBitmap, QBitmap, int, int) +http://bugs.openbossa.org/show_bug.cgi?id=630 +''' + +import unittest +from PySide.QtGui import QBitmap, QCursor, QPixmap +from helper import UsesQApplication + +class TestQCursor(UsesQApplication): + def testQCursorConstructor(self): + bmp = QBitmap(16, 16) + cursor = QCursor(bmp, bmp, 16, 16) + +if __name__ == '__main__': + unittest.main() + |