added different rules for building the command line for windows and non windows

This commit is contained in:
Paolo Cignoni 2008-03-08 17:25:04 +00:00
parent d78ce1aee8
commit 66eee15580
1 changed files with 4 additions and 0 deletions

View File

@ -108,7 +108,11 @@ private:
{
QProcess p;
QString convstring = par._converter_loc;
#if defined(Q_OS_WIN)
convstring = "\""+convstring + "\" -en 1 -input \"" + par._input_file + "\" -output \"" + par._output_file +"\"";
#else
convstring = convstring + " -en 1 -input \"" + par._input_file + "\" -output \"" + par._output_file +"\"";
#endif
qDebug("Starting converter %s", qPrintable(convstring));
p.setProcessChannelMode(QProcess::MergedChannels);
p.start(convstring);