Minimal porting to Qt4
Added .gitignore