forked from qt-creator/qt-creator
Debugger/Android: Add the Qt's qml directory as a search path
Change-Id: I5244eda989220aa2e2f8a225294d3c1dd0d97a2a Task-number: QTCREATORBUG-13245 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
@@ -116,6 +116,12 @@ RunControl *AndroidDebugSupport::createDebugRunControl(AndroidRunConfiguration *
|
||||
params.remoteSetupNeeded = true;
|
||||
//TODO: Not sure if these are the right paths.
|
||||
params.projectSourceDirectory = target->project()->projectDirectory().toString();
|
||||
Kit *kit = target->kit();
|
||||
QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(kit);
|
||||
if (version) {
|
||||
const QString qmlQtDir = version->versionInfo().value(QLatin1String("QT_INSTALL_QML"));
|
||||
params.additionalSearchDirectories = QStringList(qmlQtDir);
|
||||
}
|
||||
params.projectSourceFiles = target->project()->files(Project::ExcludeGeneratedFiles);
|
||||
params.projectBuildDirectory = target->activeBuildConfiguration()->buildDirectory().toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user