Commit d8c012e2 authored by Alessandro Portale's avatar Alessandro Portale Committed by Tobias Hunger

JsonWizard: Remove homebrew QValue(bool).toString()

QValue(bool).toString() does return "true":"false".

Change-Id: I01021eeb6be8a6e65b2fdd61c5adfee1766dbf31
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 01a5f9cf
......@@ -127,9 +127,6 @@ QString JsonWizard::stringValue(const QString &n) const
if (!v.isValid())
return QString();
if (v.type() == QVariant::Bool)
return v.toBool() ? QString::fromLatin1("true") : QString::fromLatin1("false");
if (v.type() == QVariant::String) {
QString tmp = m_expander.expand(v.toString());
if (tmp.isEmpty())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment