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 ...@@ -32,6 +32,9 @@ S60DeviceRunConfiguration::S60DeviceRunConfiguration(Project *project, const QSt
connect(project, SIGNAL(activeBuildConfigurationChanged()), connect(project, SIGNAL(activeBuildConfigurationChanged()),
this, SLOT(invalidateCachedTargetInformation())); this, SLOT(invalidateCachedTargetInformation()));
connect(project, SIGNAL(targetInformationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
} }
S60DeviceRunConfiguration::~S60DeviceRunConfiguration() S60DeviceRunConfiguration::~S60DeviceRunConfiguration()
......
...@@ -28,6 +28,9 @@ S60EmulatorRunConfiguration::S60EmulatorRunConfiguration(Project *project, const ...@@ -28,6 +28,9 @@ S60EmulatorRunConfiguration::S60EmulatorRunConfiguration(Project *project, const
connect(project, SIGNAL(activeBuildConfigurationChanged()), connect(project, SIGNAL(activeBuildConfigurationChanged()),
this, SLOT(invalidateCachedTargetInformation())); this, SLOT(invalidateCachedTargetInformation()));
connect(project, SIGNAL(targetInformationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
} }
S60EmulatorRunConfiguration::~S60EmulatorRunConfiguration() S60EmulatorRunConfiguration::~S60EmulatorRunConfiguration()
......
...@@ -1044,12 +1044,7 @@ void Qt4Project::notifyChanged(const QString &name) ...@@ -1044,12 +1044,7 @@ void Qt4Project::notifyChanged(const QString &name)
void Qt4Project::invalidateCachedTargetInformation() void Qt4Project::invalidateCachedTargetInformation()
{ {
foreach(QSharedPointer<RunConfiguration> rc, runConfigurations()) { emit targetInformationChanged();
QSharedPointer<Qt4RunConfiguration> qt4rc = rc.dynamicCast<Qt4RunConfiguration>();
if (qt4rc) {
qt4rc->invalidateCachedTargetInformation();
}
}
} }
......
...@@ -196,6 +196,9 @@ public: ...@@ -196,6 +196,9 @@ public:
virtual QStringList includePaths(const QString &fileName) const; virtual QStringList includePaths(const QString &fileName) const;
virtual QStringList frameworkPaths(const QString &fileName) const; virtual QStringList frameworkPaths(const QString &fileName) const;
signals:
void targetInformationChanged();
public slots: public slots:
void update(); void update();
void proFileParseError(const QString &errorMessage); void proFileParseError(const QString &errorMessage);
......
...@@ -75,6 +75,9 @@ Qt4RunConfiguration::Qt4RunConfiguration(Qt4Project *pro, const QString &proFile ...@@ -75,6 +75,9 @@ Qt4RunConfiguration::Qt4RunConfiguration(Qt4Project *pro, const QString &proFile
connect(pro, SIGNAL(activeBuildConfigurationChanged()), connect(pro, SIGNAL(activeBuildConfigurationChanged()),
this, SLOT(invalidateCachedTargetInformation())); this, SLOT(invalidateCachedTargetInformation()));
connect(pro, SIGNAL(targetInformationChanged()),
this, SLOT(invalidateCachedTargetInformation()));
connect(pro, SIGNAL(activeBuildConfigurationChanged()), connect(pro, SIGNAL(activeBuildConfigurationChanged()),
this, SIGNAL(baseEnvironmentChanged())); 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