diff options
author | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-02-05 11:52:03 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@theqtcompany.com> | 2015-02-05 16:29:08 +0000 |
commit | 4e09ec98c7d0d757693717a276ec324d76c8daf1 (patch) | |
tree | 4d7bfa01f2d56b71288669fd23b030089695ca69 /src/plugins/ios/iosdevicefactory.cpp | |
parent | a9454b3e557088eab8e1ee768c47d67dc0308e59 (diff) | |
download | qt-creator-4e09ec98c7d0d757693717a276ec324d76c8daf1.tar.gz |
Utils: make FileInProjectFinder work with same file names
Consider having files with the same name in different subdirectories of
your project. The FileInProjectFinder will now choose the best matching
file path, which is the one that has the longest right-aligned common
substring with the path to find.
For the candidates
["/home/jim/MyProject/Resources/qml/1/foo.qml",
"/home/jim/MyProject/Resources/qml/2/foo.qml"]
and the file path to find being "/SomeWhere/Else/qml/2/foo.qml" the
ranks are 8 and 10. Therefore, the second path is chosen.
Task-number: QTCREATORBUG-12908
Change-Id: I6225fd1dce8cc79a90d02ae0a54cdf80f75f45af
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Diffstat (limited to 'src/plugins/ios/iosdevicefactory.cpp')
0 files changed, 0 insertions, 0 deletions