Instead of relying on magic in setFocus(TabFocusReason) use selectAll() Task-number: QTCREATORBUG-369