port of XDrawChem 1.99.* to Qt4, working from code from a previous attempt