forked from qt-creator/qt-creator
Rework connections on the project pane for Qt4Projects.
Should fix a lot of corner cases, might introduce a few bugs. Also rename functions/slots to be better named. Generic Project Manager and CMake Project Manager are missing from this patch.
This commit is contained in:
@@ -268,10 +268,14 @@ MaemoRunConfiguration::MaemoRunConfiguration(Project *project,
|
||||
connect(&MaemoDeviceConfigurations::instance(), SIGNAL(updated()),
|
||||
this, SLOT(updateDeviceConfigurations()));
|
||||
|
||||
connect(project, SIGNAL(targetInformationChanged()), this,
|
||||
SLOT(invalidateCachedTargetInformation()));
|
||||
connect(project, SIGNAL(activeBuildConfigurationChanged()), this,
|
||||
SLOT(invalidateCachedTargetInformation()));
|
||||
connect(project, SIGNAL(targetInformationChanged()),
|
||||
this, SLOT(invalidateCachedTargetInformation()));
|
||||
|
||||
connect(project, SIGNAL(targetInformationChanged()),
|
||||
this, SLOT(enabledStateChanged()));
|
||||
|
||||
connect(project, SIGNAL(proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode*)),
|
||||
this, SLOT(proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode*)));
|
||||
|
||||
qemu = new QProcess(this);
|
||||
connect(qemu, SIGNAL(error(QProcess::ProcessError)), &dumper,
|
||||
@@ -315,6 +319,13 @@ QWidget *MaemoRunConfiguration::configurationWidget()
|
||||
return new MaemoRunConfigurationWidget(this);
|
||||
}
|
||||
|
||||
void MaemoRunConfiguration::proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro)
|
||||
{
|
||||
if (m_proFilePath == pro->path())
|
||||
invalidateCachedTargetInformation();
|
||||
}
|
||||
|
||||
|
||||
void MaemoRunConfiguration::save(PersistentSettingsWriter &writer) const
|
||||
{
|
||||
writer.saveValue(DeviceIdKey, m_devConfig.internalId);
|
||||
|
||||
Reference in New Issue
Block a user