Fix bug 1036 - "Qt.KeyboardModifiers always evaluates to zero"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
b50186e9f3
commit
8060e3ee87
2 changed files with 17 additions and 1 deletions
|
|
@ -59,6 +59,8 @@ class QFlagOperatorTest(unittest.TestCase):
|
|||
flag_type = (flags & Qt.WindowType_Mask)
|
||||
self.assertEqual(flag_type, Qt.Window)
|
||||
|
||||
self.assertEqual(Qt.KeyboardModifiers(Qt.ControlModifier), Qt.ControlModifier)
|
||||
|
||||
def testOperatorBetweenFlags(self):
|
||||
'''QFlags & QFlags'''
|
||||
flags = Qt.NoItemFlags | Qt.ItemIsUserCheckable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue