mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-22 14:07:15 +02:00
Fixed lay::Color test for Qt4
This commit is contained in:
@@ -88,7 +88,7 @@ TEST(5)
|
||||
EXPECT_EQ (lay::Color ("#80102030").to_string (), "#80102030");
|
||||
EXPECT_EQ (lay::Color ("#80102030").rgb (), 0x80102030);
|
||||
|
||||
#if defined(HAVE_QT)
|
||||
#if defined(HAVE_QT) && QT_VERSION >= 0x50000
|
||||
// no alpha support in Qt
|
||||
EXPECT_EQ (QColor (tl::to_qstring ("#80102030")).isValid (), true);
|
||||
EXPECT_EQ (tl::to_string (QColor (tl::to_qstring ("#80102030")).name ()), "#102030");
|
||||
|
||||
Reference in New Issue
Block a user