Use QString for number parsing
Instead of our hand-baked version, use QString::toInt() to convert to numbers.