Just refactor from qt