Commit 936ba4c0 authored by con's avatar con
Browse files

Make target information update also for non-Qt4RunConfigurations

Transform the method in Qt4Project into a signal that is handled
by the run configurations themselves.
parent f3eb79b1
......@@ -32,6 +32,9 @@ S60DeviceRunConfiguration::S60DeviceRunConfiguration(Project *project, const QSt
connect(project, SIGNAL(activeBuildConfigurationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
connect(project, SIGNAL(targetInformationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
}
S60DeviceRunConfiguration::~S60DeviceRunConfiguration()
......
......@@ -28,6 +28,9 @@ S60EmulatorRunConfiguration::S60EmulatorRunConfiguration(Project *project, const
connect(project, SIGNAL(activeBuildConfigurationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
connect(project, SIGNAL(targetInformationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
}
S60EmulatorRunConfiguration::~S60EmulatorRunConfiguration()
......
......@@ -1044,12 +1044,7 @@ void Qt4Project::notifyChanged(const QString &name)
void Qt4Project::invalidateCachedTargetInformation()
{
foreach(QSharedPointer<RunConfiguration> rc, runConfigurations()) {
QSharedPointer<Qt4RunConfiguration> qt4rc = rc.dynamicCast<Qt4RunConfiguration>();
if (qt4rc) {
qt4rc->invalidateCachedTargetInformation();
}
}
emit targetInformationChanged();
}
......
......@@ -196,6 +196,9 @@ public:
virtual QStringList includePaths(const QString &fileName) const;
virtual QStringList frameworkPaths(const QString &fileName) const;
signals:
void targetInformationChanged();
public slots:
void update();
void proFileParseError(const QString &errorMessage);
......
......@@ -75,6 +75,9 @@ Qt4RunConfiguration::Qt4RunConfiguration(Qt4Project *pro, const QString &proFile
connect(pro, SIGNAL(activeBuildConfigurationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
connect(pro, SIGNAL(targetInformationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
connect(pro, SIGNAL(activeBuildConfigurationChanged()),
this, SIGNAL(baseEnvironmentChanged()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment