a lot of compiler warning fixes

I've fixed all compiler warnings and one bug.
Qt don't line virtual signals