forked from qt-creator/qt-creator
AndroidDevice: Update after the device manager has actually loaded
Change-Id: Ibab03ef09dea6312a0d4c812c819d847b1399298 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
@@ -698,7 +698,6 @@ void AndroidConfigurations::load()
|
|||||||
settings->beginGroup(SettingsGroup);
|
settings->beginGroup(SettingsGroup);
|
||||||
m_config = AndroidConfig(*settings);
|
m_config = AndroidConfig(*settings);
|
||||||
settings->endGroup();
|
settings->endGroup();
|
||||||
updateAndroidDevice();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AndroidConfigurations::updateAndroidDevice()
|
void AndroidConfigurations::updateAndroidDevice()
|
||||||
|
@@ -115,6 +115,9 @@ public:
|
|||||||
static QLatin1String toolchainPrefix(ProjectExplorer::Abi::Architecture architecture);
|
static QLatin1String toolchainPrefix(ProjectExplorer::Abi::Architecture architecture);
|
||||||
static QLatin1String toolsPrefix(ProjectExplorer::Abi::Architecture architecture);
|
static QLatin1String toolsPrefix(ProjectExplorer::Abi::Architecture architecture);
|
||||||
|
|
||||||
|
// called from AndroidPlugin
|
||||||
|
void updateAndroidDevice();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void updated();
|
void updated();
|
||||||
|
|
||||||
@@ -132,7 +135,6 @@ private:
|
|||||||
|
|
||||||
int getSDKVersion(const QString &device) const;
|
int getSDKVersion(const QString &device) const;
|
||||||
void updateAvailablePlatforms();
|
void updateAvailablePlatforms();
|
||||||
void updateAndroidDevice();
|
|
||||||
|
|
||||||
|
|
||||||
static AndroidConfigurations *m_instance;
|
static AndroidConfigurations *m_instance;
|
||||||
|
@@ -77,6 +77,9 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa
|
|||||||
connect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsLoaded()),
|
connect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsLoaded()),
|
||||||
this, SLOT(kitsRestored()));
|
this, SLOT(kitsRestored()));
|
||||||
|
|
||||||
|
connect(ProjectExplorer::DeviceManager::instance(), SIGNAL(devicesLoaded()),
|
||||||
|
this, SLOT(updateDevice()));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,6 +92,11 @@ void AndroidPlugin::kitsRestored()
|
|||||||
this, SLOT(kitsRestored()));
|
this, SLOT(kitsRestored()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AndroidPlugin::updateDevice()
|
||||||
|
{
|
||||||
|
Internal::AndroidConfigurations::instance().updateAndroidDevice();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Android
|
} // namespace Android
|
||||||
|
|
||||||
Q_EXPORT_PLUGIN(Android::AndroidPlugin)
|
Q_EXPORT_PLUGIN(Android::AndroidPlugin)
|
||||||
|
@@ -46,6 +46,7 @@ public:
|
|||||||
void extensionsInitialized() { }
|
void extensionsInitialized() { }
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void updateDevice();
|
||||||
void kitsRestored();
|
void kitsRestored();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user