Fix the switch header/source action.
Fix the switch header/source action.

In case multiple files have the same name (in a complex project), find
the file with the most common path instead of the first one.

Change-Id: I75495dabe7ba8f5142d6b52e7c07d54d5d6f54bd
Reviewed-by: Leandro Melo <8f144cd741810d8c7b648cacf5b9b2f4e2ebcc1b@nokia.com>

KDAB/KDAB-Creator,richardmg/qtcreator,azat/qtcreator,kuba1/qtcreator,martyone/sailfish-qtcreator,azat/qtcreator,xianian/qt-creator,KDE/android-qt-creator,darksylinc/qt-creator,AltarBeastiful/qt-creator,Distrotech/qtcreator,danimo/qt-creator,Distrotech/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,KDAB/KDAB-Creator,xianian/qt-creator,syntheticpp/qt-creator,amyvmiwei/qt-creator,azat/qtcreator,duythanhphan/qt-creator,jonnor/qt-creator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,omniacreator/qtcreator,ostash/qt-creator-i18n-uk,kuba1/qtcreator,colede/qtcreator,omniacreator/qtcreator,duythanhphan/qt-creator,colede/qtcreator,ostash/qt-creator-i18n-uk,duythanhphan/qt-creator,KDE/android-qt-creator,KDE/android-qt-creator,hdweiss/qt-creator-visualizer,KDAB/KDAB-Creator,kuba1/qtcreator,azat/qtcreator,Distrotech/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,colede/qtcreator,amyvmiwei/qt-creator,KDE/android-qt-creator,kuba1/qtcreator,jonnor/qt-creator,xianian/qt-creator,richardmg/qtcreator,malikcjm/qtcreator,KDE/android-qt-creator,KDE/android-qt-creator,hdweiss/qt-creator-visualizer,colede/qtcreator,hdweiss/qt-creator-visualizer,martyone/sailfish-qtcreator,malikcjm/qtcreator,danimo/qt-creator,syntheticpp/qt-creator,darksylinc/qt-creator,KDAB/KDAB-Creator,martyone/sailfish-qtcreator,danimo/qt-creator,duythanhphan/qt-creator,duythanhphan/qt-creator,ostash/qt-creator-i18n-uk,KDE/android-qt-creator,farseerri/git_code,hdweiss/qt-creator-visualizer,malikcjm/qtcreator,hdweiss/qt-creator-visualizer,farseerri/git_code,maui-packages/qt-creator,amyvmiwei/qt-creator,ostash/qt-creator-i18n-uk,ostash/qt-creator-i18n-uk,martyone/sailfish-qtcreator,richardmg/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,darksylinc/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,Distrotech/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,amyvmiwei/qt-creator,jonnor/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,KDE/android-qt-creator,jonnor/qt-creator,farseerri/git_code,malikcjm/qtcreator,xianian/qt-creator,syntheticpp/qt-creator,farseerri/git_code,syntheticpp/qt-creator,danimo/qt-creator,omniacreator/qtcreator,Distrotech/qtcreator,omniacreator/qtcreator,malikcjm/qtcreator,kuba1/qtcreator,ostash/qt-creator-i18n-uk,malikcjm/qtcreator,kuba1/qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,darksylinc/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,jonnor/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,syntheticpp/qt-creator,omniacreator/qtcreator,farseerri/git_code,kuba1/qtcreator,azat/qtcreator,kuba1/qtcreator,colede/qtcreator,ostash/qt-creator-i18n-uk,omniacreator/qtcreator,richardmg/qtcreator,darksylinc/qt-creator,maui-packages/qt-creator,maui-packages/qt-creator,colede/qtcreator,malikcjm/qtcreator,Distrotech/qtcreator,KDAB/KDAB-Creator,duythanhphan/qt-creator,AltarBeastiful/qt-creator,darksylinc/qt-creator,xianian/qt-creator,danimo/qt-creator,farseerri/git_code,xianian/qt-creator,duythanhphan/qt-creator,danimo/qt-creator,jonnor/qt-creator,danimo/qt-creator,syntheticpp/qt-creator,KDAB/KDAB-Creator,richardmg/qtcreator,syntheticpp/qt-creator,colede/qtcreator,omniacreator/qtcreator,azat/qtcreator,AltarBeastiful/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator