forked from qt-creator/qt-creator
Android: Rework settings dialog
Make it possible to create multiple AndroidConfigs so that we can have a different one in the settings dialog from the global one. Move pretty much every method from AndroidConfigurations to AndroidConfig, so that the settings dialog can work with its copy. Also add some additional logic to the settings page around the java setting. To start the avd manager we need both a sdk path and a java path. Also do some basic additional checking of the java path. Task-number: QTCREATORBUG-7724 Task-number: QTCREATORBUG-10936 Task-number: QTCREATORBUG-10937 Task-number: QTCREATORBUG-11059 Task-number: QTCREATORBUG-11218 Change-Id: I148c69b9c98a8a070d17d9b0e223d01db1750e69 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -69,7 +69,7 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa
|
||||
Q_UNUSED(arguments);
|
||||
Q_UNUSED(errorMessage);
|
||||
|
||||
Internal::AndroidConfigurations::instance(this);
|
||||
new Internal::AndroidConfigurations(this);
|
||||
|
||||
addAutoReleasedObject(new Internal::AndroidRunControlFactory);
|
||||
addAutoReleasedObject(new Internal::AndroidRunConfigurationFactory);
|
||||
@@ -109,16 +109,16 @@ bool AndroidPlugin::initialize(const QStringList &arguments, QString *errorMessa
|
||||
|
||||
void AndroidPlugin::kitsRestored()
|
||||
{
|
||||
Internal::AndroidConfigurations::instance().updateAutomaticKitList();
|
||||
Internal::AndroidConfigurations::updateAutomaticKitList();
|
||||
connect(QtSupport::QtVersionManager::instance(), SIGNAL(qtVersionsChanged(QList<int>,QList<int>,QList<int>)),
|
||||
&Internal::AndroidConfigurations::instance(), SLOT(updateAutomaticKitList()));
|
||||
Internal::AndroidConfigurations::instance(), SLOT(updateAutomaticKitList()));
|
||||
disconnect(ProjectExplorer::KitManager::instance(), SIGNAL(kitsChanged()),
|
||||
this, SLOT(kitsRestored()));
|
||||
}
|
||||
|
||||
void AndroidPlugin::updateDevice()
|
||||
{
|
||||
Internal::AndroidConfigurations::instance().updateAndroidDevice();
|
||||
Internal::AndroidConfigurations::updateAndroidDevice();
|
||||
}
|
||||
|
||||
} // namespace Android
|
||||
|
Reference in New Issue
Block a user