gui-qt: refactor code only.