Commit 4ff06226 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

Merge branch 'hotfix/1.1.1'

parents 611fae62 a6edb61c
......@@ -30,7 +30,7 @@ project(dtk)
set(dtk_VERSION_MAJOR 1)
set(dtk_VERSION_MINOR 1)
set(dtk_VERSION_PATCH 0)
set(dtk_VERSION_PATCH 1)
set(dtk_VERSION
${dtk_VERSION_MAJOR}.${dtk_VERSION_MINOR}.${dtk_VERSION_PATCH})
......
......@@ -50,9 +50,11 @@ QString dtkMetaType::description(const QVariant& v)
} else if (!userStream) {
dbg << qSetRealNumberPrecision( 15 ) << v;
str.chop(2);
QString cleanStr = str.trimmed();
cleanStr.chop(1);
// remove "QVariant(typename, " from the string:
int count = 11 + QString(v.typeName()).size();
str.remove(0, count);
str = cleanStr.remove(0, count);
}
}
return str;
......
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