forked from qt-creator/qt-creator
Maemo: More adaptations to fixed outout window newline handling.
This commit is contained in:
@@ -190,9 +190,10 @@ void AbstractMaemoDeployStep::raiseError(const QString &errorString)
|
||||
emit error();
|
||||
}
|
||||
|
||||
void AbstractMaemoDeployStep::writeOutput(const QString &text, OutputFormat format)
|
||||
void AbstractMaemoDeployStep::writeOutput(const QString &text, OutputFormat format,
|
||||
OutputNewlineSetting newlineSetting)
|
||||
{
|
||||
emit addOutput(text, format);
|
||||
emit addOutput(text, format, newlineSetting);
|
||||
}
|
||||
|
||||
void AbstractMaemoDeployStep::stop()
|
||||
@@ -377,7 +378,7 @@ void AbstractMaemoDeployStep::handleRemoteStdout(const QString &output)
|
||||
switch (m_baseState) {
|
||||
case Deploying:
|
||||
case StopRequested:
|
||||
writeOutput(output, NormalOutput);
|
||||
writeOutput(output, NormalOutput, DontAppendNewline);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -391,7 +392,7 @@ void AbstractMaemoDeployStep::handleRemoteStderr(const QString &output)
|
||||
switch (m_baseState) {
|
||||
case Deploying:
|
||||
case StopRequested:
|
||||
writeOutput(output, ErrorOutput);
|
||||
writeOutput(output, ErrorOutput, DontAppendNewline);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -89,7 +89,8 @@ protected:
|
||||
BaseState baseState() const { return m_baseState; }
|
||||
|
||||
void raiseError(const QString &error);
|
||||
void writeOutput(const QString &text, OutputFormat = MessageOutput);
|
||||
void writeOutput(const QString &text, OutputFormat format = MessageOutput,
|
||||
OutputNewlineSetting newlineSetting = DoAppendNewline);
|
||||
void setDeploymentFinished();
|
||||
const AbstractMaemoPackageCreationStep *packagingStep() const;
|
||||
QString deployMountPoint() const;
|
||||
|
||||
@@ -147,7 +147,7 @@ void AbstractMaemoDeployByMountStep::handleMountDebugOutput(const QString &outpu
|
||||
ASSERT_BASE_STATE(QList<BaseState>() << Deploying << StopRequested);
|
||||
|
||||
if (m_extendedState != Inactive)
|
||||
writeOutput(output, ErrorOutput);
|
||||
writeOutput(output, ErrorOutput, DontAppendNewline);
|
||||
}
|
||||
|
||||
void AbstractMaemoDeployByMountStep::mount()
|
||||
|
||||
Reference in New Issue
Block a user