Adapt previous ui mod to stay Qt4-compliant (fixes #15)