From 9c4cb4bd2d49a2429b71b2eea1522efcf41f1ded Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 26 Sep 2014 16:53:29 +0200 Subject: Use case insensitive comparison instead of toLower(). Change-Id: I73907afab82cdef8e717def6095cd7d03236fadf Reviewed-by: Joerg Bornemann --- tools/testcon/changeproperties.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/testcon/changeproperties.cpp b/tools/testcon/changeproperties.cpp index 3a7fb68..df8000d 100644 --- a/tools/testcon/changeproperties.cpp +++ b/tools/testcon/changeproperties.cpp @@ -141,8 +141,8 @@ void ChangeProperties::on_buttonSet_clicked() break; case QVariant::Bool: { - QString txt = editValue->text().toLower(); - value = QVariant(txt != QLatin1String("0") && txt != QLatin1String("false")); + const QString txt = editValue->text(); + value = QVariant(txt != QLatin1String("0") && txt.compare(QLatin1String("false"), Qt::CaseInsensitive)); } break; case QVariant::List: -- cgit v1.2.1