ported to qt4. need documentation and dependency referencing