qmljs: fix projectInfoForPath and fileToPath mapping
qmljs: fix projectInfoForPath and fileToPath mapping

m_fileToPath was not always updated correctly which lead
projectInfoForPath to return a wrong/invalid project info,
messing up the paths used by the code model.

Change-Id: If5e144f1ef2c7353b9077deb1b9c9aa9d1708651
Reviewed-by: Eike Ziller <c142da16c73a95a82d35191bcc55b22835617128@theqtcompany.com>
Reviewed-by: Fawzi Mohamed <7388270c57edd0fabd71d8eb0322d66e3c40e57e@theqtcompany.com>

amyvmiwei/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,Distrotech/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,xianian/qt-creator,Distrotech/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,farseerri/git_code,danimo/qt-creator,kuba1/qtcreator,AltarBeastiful/qt-creator,kuba1/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,Distrotech/qtcreator,danimo/qt-creator,farseerri/git_code,kuba1/qtcreator,AltarBeastiful/qt-creator,danimo/qt-creator,xianian/qt-creator,farseerri/git_code,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,kuba1/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,Distrotech/qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,farseerri/git_code,danimo/qt-creator,danimo/qt-creator,kuba1/qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,danimo/qt-creator,Distrotech/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,farseerri/git_code,amyvmiwei/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,kuba1/qtcreator,farseerri/git_code,amyvmiwei/qt-creator,xianian/qt-creator,xianian/qt-creator,farseerri/git_code