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

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

Change-Id: I01021eeb6be8a6e65b2fdd61c5adfee1766dbf31
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Alessandro Portale
2015-06-04 17:49:46 +02:00
committed by Tobias Hunger
parent 01a5f9cfc7
commit d8c012e29b

View File

@@ -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())