Mercurial > hg > svcore
comparison data/fileio/CSVFileWriter.cpp @ 1127:815f82508f96 tony-2.0-integration
Back out Matthias's e22bfe8ca248 in the hope that my (earlier but on a different branch, and now merged) fix 882d448c8a6d will do the right thing
author | Chris Cannam |
---|---|
date | Thu, 20 Aug 2015 15:33:13 +0100 |
parents | e22bfe8ca248 |
children | 48e9f538e6e9 d61d6c33f14d |
comparison
equal
deleted
inserted
replaced
1126:39019ce29178 | 1127:815f82508f96 |
---|---|
66 if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { | 66 if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { |
67 m_error = tr("Failed to open file %1 for writing") | 67 m_error = tr("Failed to open file %1 for writing") |
68 .arg(temp.getTemporaryFilename()); | 68 .arg(temp.getTemporaryFilename()); |
69 return; | 69 return; |
70 } | 70 } |
71 | 71 |
72 QTextStream out(&file); | 72 QTextStream out(&file); |
73 out << m_model->toDelimitedDataStringWithOptions | 73 out << m_model->toDelimitedDataStringWithOptions |
74 (m_delimiter, m_options); | 74 (m_delimiter, m_options); |
75 | 75 |
76 file.close(); | 76 file.close(); |