Separated Qt functions from ShoreTel function
Modified iedit-mode-hook to conform to iedit's updates