Fix missing whitespace trimming on strings
Update resource.cpp
@@ -995,34 +995,10 @@ bool ResourceItem::toBool() const
}
bool ResourceItem::setValue(const QString &val, ValueSource source)
-{
- if (m_rid->type == DataTypeString)
- {
- setItemString(val);
- }
-
- if (m_str)
- {
- if (m_rid->type == DataTypeTime)
{
return setValue(QVariant(val), source);
}
- m_valueSource = source;
- m_lastSet = QDateTime::currentDateTime();
- m_flags |= FlagNeedPushSet;
- if (*m_str != val)
- {
- *m_str = val;
- m_lastChanged = m_lastSet;
- m_flags |= FlagNeedPushChange;
- }
- return true;
- }
-
- return false;
-}
-
bool ResourceItem::setValue(qint64 val, ValueSource source)
{
if (m_rid->validMin != 0 || m_rid->validMax != 0)
