Qt binding: Removing ambiguitiy between QLatin1String and const char *

This commit is contained in:
Matthias Koefferlein
2023-03-26 00:56:01 +01:00
parent 40d3fd41b1
commit 79ad6b3fae
14 changed files with 18 additions and 408 deletions
+7
View File
@@ -685,6 +685,13 @@ class QtBindingTest(unittest.TestCase):
self.assertEqual("%08x" % image.pixel(1, 0), "14131211")
self.assertEqual("%08x" % image.pixel(0, 2), "64636261")
def test_57(self):
# QColor with string parameter (suppressing QLatin1String)
color = pya.QColor("blue")
self.assertEqual(color.name(), "#0000ff")
# run unit tests
if __name__ == '__main__':