mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 01:14:35 +02:00
Qt binding: Removing ambiguitiy between QLatin1String and const char *
This commit is contained in:
Vendored
+7
@@ -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__':
|
||||
|
||||
Reference in New Issue
Block a user