The example editor from "The Book of Qt4"