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

@@ -27,6 +27,7 @@
**
**************************************************************************/
#include "qmloutputformatter.h"
#include "qmlprojectruncontrol.h"
#include "qmlprojectrunconfiguration.h"
#include "qmlprojectconstants.h"
@@ -102,6 +103,11 @@ bool QmlRunControl::isRunning() const
return m_applicationLauncher.isRunning();
}
ProjectExplorer::OutputFormatter *QmlRunControl::createOutputFormatter(QObject *parent)
{
return new QmlOutputFormatter(parent);
}
void QmlRunControl::slotBringApplicationToForeground(qint64 pid)
{
bringApplicationToForeground(pid);