Fixed lay::Color test for Qt4

This commit is contained in:
Matthias Koefferlein 2022-05-16 20:08:05 +02:00
parent d8f51a5ef0
commit beb5af55a7
1 changed files with 1 additions and 1 deletions

View File

@ -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");