started rewrite, switched to Qt5