changeset 784:ee430e9ffccc

Fix for old Qt versions
author Chris Cannam
date Thu, 23 Jul 2020 17:24:16 +0100
parents 4d10365aa6a9
children e136dd3bb5c6
files align/ExternalProgramAligner.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/align/ExternalProgramAligner.cpp	Fri Jul 17 18:02:59 2020 +0100
+++ b/align/ExternalProgramAligner.cpp	Thu Jul 23 17:24:16 2020 +0100
@@ -166,7 +166,11 @@
 
     cerr << str << endl;
     
+#if (QT_VERSION >= 0x050300)
     QString pfx = QString("[pid%1] ").arg(m_process->processId());
+#else
+    QString pfx = QString("[subproc] ");
+#endif    
     str.replace("\r", "\\r");
     str.replace("\n", "\n" + pfx);