Split headers to .h and .cpp files

+ Changed every int to qint32