- if (outfile != os::nulldev())
- proc_->setStandardOutputFile(toqstr(outfile));
- } else if (os::is_terminal(os::STDOUT))
- setShowOut(true);
- if (os::is_terminal(os::STDERR))
- setShowErr(true);
-
- connect(proc_, SIGNAL(readyReadStandardOutput()), SLOT(stdOut()));
- connect(proc_, SIGNAL(readyReadStandardError()), SLOT(stdErr()));
- connect(proc_, SIGNAL(error(QProcess::ProcessError)), SLOT(processError(QProcess::ProcessError)));
- connect(proc_, SIGNAL(started()), this, SLOT(processStarted()));
- connect(proc_, SIGNAL(finished(int, QProcess::ExitStatus)), SLOT(processFinished(int, QProcess::ExitStatus)));
-}
+ if (out_file_ != os::nulldev())
+ process_->setStandardOutputFile(QString::fromLocal8Bit(out_file_.c_str()));
+ }