Removing Qt Gui code to focus on core