relocate files & convert painter.c to qt-project