[LocationCompleter] Correctly elide text also fixed compile on Qt5.