forked from qt-creator/qt-creator
Refactor OutputFormatter
Move link handling code to outputwindow from OutputFormatter Move createOutputFormatter to the RunConfiguration That makes it easier for Qt4RunConfiguration et all. This also fixes that each time a runcontrol was rerun a new OutputFormatter was created without deleting the old one, thus increasing the memory usage.
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "qt4buildconfiguration.h"
|
||||
#include "qt4projectmanagerconstants.h"
|
||||
#include "s60createpackagestep.h"
|
||||
#include "qtoutputformatter.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <coreplugin/messagemanager.h>
|
||||
@@ -207,6 +208,11 @@ QWidget *S60DeviceRunConfiguration::createConfigurationWidget()
|
||||
return new S60DeviceRunConfigurationWidget(this);
|
||||
}
|
||||
|
||||
ProjectExplorer::OutputFormatter *S60DeviceRunConfiguration::createOutputFormatter() const
|
||||
{
|
||||
return new QtOutputFormatter(qt4Target()->qt4Project());
|
||||
}
|
||||
|
||||
QVariantMap S60DeviceRunConfiguration::toMap() const
|
||||
{
|
||||
QVariantMap map(ProjectExplorer::RunConfiguration::toMap());
|
||||
|
||||
Reference in New Issue
Block a user