Changed ASCII log parsing of 'e' and 'E' to be floats.

Also refactored some code and left out the use of toAscii(). This will simplify transition to Qt5.

Proposed change to fix #276 - look for 'floatdef'.