diff options
author | El Mehdi Fekari <mfekari@rim.com> | 2013-05-02 10:30:49 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-21 13:23:31 (GMT) |
commit | 9a62d6f2f89ea4c5e6d392d758bb9d7954c644d1 (patch) | |
tree | f7f5e5048984f18b36daf2657f5a99bbab9ab3a1 /src/corelib/tools/qlocale.h | |
parent | 36501694357ade4e35a48ac5bfadcd7dbd881336 (diff) | |
download | Qt-9a62d6f2f89ea4c5e6d392d758bb9d7954c644d1.zip Qt-9a62d6f2f89ea4c5e6d392d758bb9d7954c644d1.tar.gz Qt-9a62d6f2f89ea4c5e6d392d758bb9d7954c644d1.tar.bz2 |
Fix QLocale::standaloneMonthName when d->m_data == systemData()
At the moment if d->m_data == systemData() it calls
systemLocale()->query but forgets about the standalone part
so you get the wrong data
This patch introduces the new enums so that backends can implement
properly the standaloneMonthName feature properly. At the moment the Windows
and Mac ones still return the monthName, the Unix and Blackberry ones return
the data we store in months_data.
cherry picked from qtbase/b1de018e9a1efcd0f9e298ae4c865197feb47895
Change-Id: I1054420dc696ed2be0d52bdc6567ebaf202faf12
Reviewed-by: Albert Astals Cid <albert.astals@canonical.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/corelib/tools/qlocale.h')
-rw-r--r-- | src/corelib/tools/qlocale.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale.h b/src/corelib/tools/qlocale.h index 72d2aa0..2746cab 100644 --- a/src/corelib/tools/qlocale.h +++ b/src/corelib/tools/qlocale.h @@ -116,7 +116,9 @@ public: ListToSeparatedString, // QString LocaleChanged, // system locale changed NativeLanguageName, // QString - NativeCountryName // QString + NativeCountryName, // QString + StandaloneMonthNameLong, // QString, in: int + StandaloneMonthNameShort // QString, in: int }; virtual QVariant query(QueryType type, QVariant in) const; virtual QLocale fallbackLocale() const; |