Additional font metrics corrections.

Corrected the font metrics handling in several components, also regarding the pin numbers position. Added some more comments in the code.
Updated the deprecated Qt3 support parts.

Changed the deprecated Qt3 support functions with the equivalent Qt4 code.