From 61e3fe7fd903981a75951ab360b37d186335afcb Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 15 Feb 2022 10:13:46 +0100 Subject: =?UTF-8?q?Do=20not=20assume=20implicit=20string-ish=20=E2=86=92?= =?UTF-8?q?=20QColor=20conversion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to mark the corresponding QColor ctor(s) explicit. Use Qt::GlobalColor or the new QColor::fromString() instead. Change-Id: I68bf75a094e6821b97682de5a0ffd975834d22d0 Reviewed-by: Allan Sandfeld Jensen --- examples/embedded/flickable/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/embedded/flickable/main.cpp b/examples/embedded/flickable/main.cpp index 139baa6ba7..cb3920d428 100644 --- a/examples/embedded/flickable/main.cpp +++ b/examples/embedded/flickable/main.cpp @@ -101,8 +101,8 @@ public: m_colorNames << (str + " " + c); QStringList duet = c.split(' '); - m_firstColor << duet[0]; - m_secondColor << duet[1]; + m_firstColor << QColor::fromString(duet[0]); + m_secondColor << QColor::fromString(duet[1]); } setAttribute(Qt::WA_OpaquePaintEvent, true); -- cgit v1.2.3