Lines 30-41
Link Here
|
30 |
|
30 |
|
31 |
QTextStream &operator>>(QTextStream &str, QStringList &list) { |
31 |
QTextStream &operator>>(QTextStream &str, QStringList &list) { |
32 |
list.clear(); |
32 |
list.clear(); |
33 |
foreach(const QStringRef &s, str.readLine().splitRef(QLatin1Char(','))) |
33 |
|
34 |
{ |
34 |
QString line = str.readLine(); |
35 |
QStringRef trimmed = s.trimmed(); |
35 |
|
|
|
36 |
Q_FOREACH (const QStringRef &s, line.splitRef(QLatin1Char(','))) { |
37 |
QStringRef trimmed = s.trimmed(); |
36 |
if (!trimmed.isEmpty()) |
38 |
if (!trimmed.isEmpty()) |
37 |
list.append(trimmed.toString()); |
39 |
list.append(trimmed.toString()); |
38 |
} |
40 |
} |
|
|
41 |
|
39 |
return str; |
42 |
return str; |
40 |
} |
43 |
} |
41 |
|
44 |
|