Moved "Application Output" formatting to a specialized formatter.

By introducing the OutputFormatter, RunControls can influence the formatting
depening on the application started. A nice (and intended) side-effect is that
the QML runtime specific formatting will not interfere anymore with anything
else.
This commit is contained in:
Erik Verbruggen
2010-04-19 10:48:50 +02:00
parent 890aca82ae
commit 53425816af
15 changed files with 430 additions and 107 deletions

View File

@@ -29,6 +29,7 @@
#include "runconfiguration.h"
#include "outputformatter.h"
#include "project.h"
#include "target.h"
#include "buildconfiguration.h"
@@ -236,6 +237,11 @@ bool RunControl::sameRunConfiguration(RunControl *other)
return other->m_runConfiguration.data() == m_runConfiguration.data();
}
OutputFormatter *RunControl::createOutputFormatter(QObject *parent)
{
return new OutputFormatter(parent);
}
void RunControl::bringApplicationToForeground(qint64 pid)
{
#ifdef Q_OS_MAC