QTfrontend/net/tcpBase.cpp
changeset 8635 c1c6b815691e
parent 8310 a98c349bc06b
child 8799 44e520374cfc
equal deleted inserted replaced
8634:5dcb1dc9e01b 8635:c1c6b815691e
   139     QProcess * process;
   139     QProcess * process;
   140     process = new QProcess();
   140     process = new QProcess();
   141     connect(process, SIGNAL(error(QProcess::ProcessError)), this, SLOT(StartProcessError(QProcess::ProcessError)));
   141     connect(process, SIGNAL(error(QProcess::ProcessError)), this, SLOT(StartProcessError(QProcess::ProcessError)));
   142     QStringList arguments=getArguments();
   142     QStringList arguments=getArguments();
   143 
   143 
       
   144 #ifdef DEBUG
   144     // redirect everything written on stdout/stderr
   145     // redirect everything written on stdout/stderr
   145     if(isDevBuild)
   146     process->setProcessChannelMode(QProcess::ForwardedChannels);
   146         process->setProcessChannelMode(QProcess::ForwardedChannels);
   147 #endif
   147 
   148 
   148     process->start(bindir->absolutePath() + "/hwengine", arguments);
   149     process->start(bindir->absolutePath() + "/hwengine", arguments);
   149 #endif
   150 #endif
   150     m_hasStarted = true;
   151     m_hasStarted = true;
   151 }
   152 }