Completion: Fix completion not triggering sometimes.
Completion: Fix completion not triggering sometimes.

The problem was that an automatically triggered 'idle' completion result
could come in while we were waiting for actual 'triggered' completion
and then the real completion result would be discarded.

To avoid that:
* Only accept proposals from the currently running completion.
* Increase the idle completion timeout to 400ms so it doesn't get
  triggered during regular typing.

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

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