Remove QSharedPointer<> for RunConfiguration

This commit is contained in:
dt
2009-10-08 18:37:18 +02:00
parent 8adef29bf6
commit 10a0647ddf
33 changed files with 247 additions and 261 deletions

View File

@@ -109,18 +109,26 @@ IRunControlFactory::~IRunControlFactory()
{
}
RunControl::RunControl(const QSharedPointer<RunConfiguration> &runConfiguration)
RunControl::RunControl(RunConfiguration *runConfiguration)
: m_runConfiguration(runConfiguration)
{
}
QSharedPointer<RunConfiguration> RunControl::runConfiguration() const
{
return m_runConfiguration;
if (runConfiguration)
m_displayName = runConfiguration->name();
}
RunControl::~RunControl()
{
}
QString RunControl::displayName() const
{
return m_displayName;
}
bool RunControl::sameRunConfiguration(RunControl *other)
{
return other->m_runConfiguration.data() == m_runConfiguration.data();
}
void RunControl::bringApplicationToForeground(qint64 pid)