src/corelib/tools/qlocale.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
  1185         QString value = getCFLocaleValue(kCFLocaleGroupingSeparator);
  1185         QString value = getCFLocaleValue(kCFLocaleGroupingSeparator);
  1186         return value.isEmpty() ? QVariant() : value;
  1186         return value.isEmpty() ? QVariant() : value;
  1187     }
  1187     }
  1188     case DateFormatLong:
  1188     case DateFormatLong:
  1189     case DateFormatShort:
  1189     case DateFormatShort:
  1190         return macToQtFormat(getMacDateFormat(type == DateFormatShort
  1190         return getMacDateFormat(type == DateFormatShort
  1191                                 ? kCFDateFormatterShortStyle
  1191                                 ? kCFDateFormatterShortStyle
  1192                                 : kCFDateFormatterLongStyle));
  1192                                 : kCFDateFormatterLongStyle);
  1193     case TimeFormatLong:
  1193     case TimeFormatLong:
  1194     case TimeFormatShort:
  1194     case TimeFormatShort:
  1195         return macToQtFormat(getMacTimeFormat(type == TimeFormatShort
  1195         return getMacTimeFormat(type == TimeFormatShort
  1196                                 ? kCFDateFormatterShortStyle
  1196                                 ? kCFDateFormatterShortStyle
  1197                                 : kCFDateFormatterLongStyle));
  1197                                 : kCFDateFormatterLongStyle);
  1198     case DayNameLong:
  1198     case DayNameLong:
  1199     case DayNameShort:
  1199     case DayNameShort:
  1200         return macDayName(in.toInt(), (type == DayNameShort));
  1200         return macDayName(in.toInt(), (type == DayNameShort));
  1201     case MonthNameLong:
  1201     case MonthNameLong:
  1202     case MonthNameShort:
  1202     case MonthNameShort: