Don't change context if focus widget parent hierarchy doesn't define one
Don't change context if focus widget parent hierarchy doesn't define one

We now keep the current context if the focus is set on a widget with a
parent hierarchy that doesn't define one. This way, toplevels without a
context, like popup windows without parent, will keep the behavior from
before other toplevels could define contexts at all
(2118d542e630399a544caeee2c824c621d3d48d0)

Task-number: QTCREATORBUG-8667
Change-Id: I8dd04d1f97f6ced10f8fa4269bc91457211396ca
Reviewed-by: David Schulz <f07954e8cc0c222cd136162588d217f330598215@digia.com>
Reviewed-by: Robert Loehning <1f928983f879a6fe326acd94487f754cc16e1fe4@digia.com>

xianian/qt-creator,malikcjm/qtcreator,omniacreator/qtcreator,farseerri/git_code,xianian/qt-creator,AltarBeastiful/qt-creator,kuba1/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,duythanhphan/qt-creator,richardmg/qtcreator,darksylinc/qt-creator,duythanhphan/qt-creator,kuba1/qtcreator,richardmg/qtcreator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,Distrotech/qtcreator,colede/qtcreator,Distrotech/qtcreator,omniacreator/qtcreator,kuba1/qtcreator,kuba1/qtcreator,maui-packages/qt-creator,kuba1/qtcreator,kuba1/qtcreator,xianian/qt-creator,xianian/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,omniacreator/qtcreator,amyvmiwei/qt-creator,xianian/qt-creator,martyone/sailfish-qtcreator,darksylinc/qt-creator,danimo/qt-creator,farseerri/git_code,farseerri/git_code,farseerri/git_code,xianian/qt-creator,danimo/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,malikcjm/qtcreator,xianian/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,farseerri/git_code,colede/qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,malikcjm/qtcreator,omniacreator/qtcreator,colede/qtcreator,duythanhphan/qt-creator,malikcjm/qtcreator,duythanhphan/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,maui-packages/qt-creator,omniacreator/qtcreator,maui-packages/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,kuba1/qtcreator,maui-packages/qt-creator,colede/qtcreator,amyvmiwei/qt-creator,colede/qtcreator,danimo/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,kuba1/qtcreator,danimo/qt-creator,Distrotech/qtcreator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,malikcjm/qtcreator,AltarBeastiful/qt-creator,danimo/qt-creator,martyone/sailfish-qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,duythanhphan/qt-creator,duythanhphan/qt-creator,farseerri/git_code,AltarBeastiful/qt-creator,danimo/qt-creator,richardmg/qtcreator,farseerri/git_code,darksylinc/qt-creator,colede/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,Distrotech/qtcreator,martyone/sailfish-qtcreator,darksylinc/qt-creator,danimo/qt-creator,colede/qtcreator,xianian/qt-creator,malikcjm/qtcreator,richardmg/qtcreator,AltarBeastiful/qt-creator,richardmg/qtcreator,martyone/sailfish-qtcreator,malikcjm/qtcreator,maui-packages/qt-creator