Use QListWidget for selector and simplify a lot code.

Thanks to @mineo for good advices on this.