changing the default locale can have various bad effects (such as failure
to convert localized integers stored in QString) which is why there was a
warning about it. even tho UNIX has the concept of changing the locale
settings (via setlocale()) I am not willing to support such feature
because QWidget, QValidtor, etc. have their own locale feature that can
be changed at any time
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
indent and replace default with enum case while at it. automated
adjustments can be done with the following command:
find -type f -exec sed \
-e 's|Qt::SystemLocaleDate|Qt::SystemLocaleShortDate|g' \
-e 's|Qt::LocalDate|Qt::SystemLocaleShortDate|g' \
-e 's|Qt::LocaleDate|Qt::DefaultLocaleShortDate|g' -i {} +
if you are doing it to git repository, move it out of the way as the
command may corrupt it.
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>