Mercurial > retraceit
comparison src/libqxt/qxtcsvmodel.cpp @ 40:89997d853bf6
Ignore Index Nr. in filter list
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 06 May 2015 18:10:14 +0200 |
parents | 0c05958d254c |
children | 5923d569167b |
comparison
equal
deleted
inserted
replaced
39:5d05b812807b | 40:89997d853bf6 |
---|---|
201 readCR = false; | 201 readCR = false; |
202 if(ch != separator && (ch.category() == QChar::Separator_Line || ch.category() == QChar::Separator_Paragraph || ch.category() == QChar::Other_Control)) { | 202 if(ch != separator && (ch.category() == QChar::Separator_Line || ch.category() == QChar::Separator_Paragraph || ch.category() == QChar::Other_Control)) { |
203 row << field; | 203 row << field; |
204 field.clear(); | 204 field.clear(); |
205 if(!row.isEmpty()) { | 205 if(!row.isEmpty()) { |
206 row.insert(0, headerSet ? QString::number(idx_nr++) : QString::fromLatin1("Index Nr.")); // XXX added for retraceit | 206 row.insert(0, headerSet ? QString::number(idx_nr++) : QString::fromLatin1("#Index Nr.")); // XXX added for retraceit |
207 if(!headerSet) { | 207 if(!headerSet) { |
208 d_ptr->header = row; | 208 d_ptr->header = row; |
209 headerSet = true; | 209 headerSet = true; |
210 } else { | 210 } else { |
211 d_ptr->csvData.append(row); | 211 d_ptr->csvData.append(row); |