QmlDebug: Simplify logic to find the source file for a stack frame

Get rid of custom logic to handle shadow builds (which didn't work
anyway if the qml files are from a different directory than expected).
Instead, just search for the file name in the list of files from the
project.

Reviewed-by: Christiaan Janssen
This commit is contained in:
Kai Koehne
2011-04-26 09:46:05 +02:00
parent 5b521e2dad
commit ea36927cc3
5 changed files with 19 additions and 76 deletions

View File

@@ -206,7 +206,8 @@ RunControl *QmlRunControlFactory::createDebugRunControl(QmlProjectRunConfigurati
params.workingDirectory = runConfig->workingDirectory();
params.environment = runConfig->environment();
params.displayName = runConfig->displayName();
params.projectDir = runConfig->target()->project()->projectDirectory();
params.projectSourceDirectory = runConfig->target()->project()->projectDirectory();
params.projectSourceFiles = runConfig->target()->project()->files(Project::ExcludeGeneratedFiles);
if (params.executable.isEmpty()) {
showQmlObserverToolWarning();