comparison align/ExternalProgramAligner.cpp @ 784:ee430e9ffccc

Fix for old Qt versions
author Chris Cannam
date Thu, 23 Jul 2020 17:24:16 +0100
parents 5de2b710cfae
children
comparison
equal deleted inserted replaced
783:4d10365aa6a9 784:ee430e9ffccc
164 164
165 QString str = QString::fromUtf8(buffer); 165 QString str = QString::fromUtf8(buffer);
166 166
167 cerr << str << endl; 167 cerr << str << endl;
168 168
169 #if (QT_VERSION >= 0x050300)
169 QString pfx = QString("[pid%1] ").arg(m_process->processId()); 170 QString pfx = QString("[pid%1] ").arg(m_process->processId());
171 #else
172 QString pfx = QString("[subproc] ");
173 #endif
170 str.replace("\r", "\\r"); 174 str.replace("\r", "\\r");
171 str.replace("\n", "\n" + pfx); 175 str.replace("\n", "\n" + pfx);
172 176
173 SVDEBUG << pfx << str << endl; 177 SVDEBUG << pfx << str << endl;
174 178