~neon/analitza/master

« back to all changes in this revision

Viewing changes to analitza/variables.cpp

  • Committer: Aleix Pol
  • Date: 2020-03-16 18:11:08 UTC
  • Revision ID: git-v1:8d84f8d757682915922cf2dd8ec0550fe379fc5f
Improve debugging of Variables instances

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
{
91
91
    return Expression(value(name)->copy());
92
92
}
 
93
 
 
94
QString Variables::toString() const
 
95
{
 
96
    QString dbg;
 
97
    dbg += QStringLiteral("Variables(");
 
98
    for (Variables::const_iterator it = constBegin(), itEnd = constEnd(); it != itEnd; ++it)
 
99
        dbg += it.key() + QLatin1Char('=') + it.value()->toString() + QLatin1String(", ");
 
100
    dbg += QLatin1String(")");
 
101
 
 
102
    return dbg;
 
103
}