use QLocale instead of locale_t

MinGW has no xlocale