diff options
author | Titta Heikkala <titta.heikkala@theqtcompany.com> | 2014-10-20 15:18:21 +0300 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@theqtcompany.com> | 2014-10-21 09:14:03 +0300 |
commit | 38dcfecdb5955680ae46fd9a8c9c4b1fa3fd084d (patch) | |
tree | 51a368f7b8c642a68c694b8d4a02e6acff724ce8 | |
parent | 929d943d1aabf414eaa6e402464124f18d4f2abc (diff) |
Fix chart axis label format
The label format for axis can now be set so that there's a separator for
thousands, for example, with setLabelFormat("%'5.2f")
Change-Id: Ic159776039d04a91a7ccf648800bd9720c41246e
Task-number: QTRD-3347
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
-rw-r--r-- | src/charts/axis/chartaxiselement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charts/axis/chartaxiselement.cpp b/src/charts/axis/chartaxiselement.cpp index 73cd057e..b9b9b726 100644 --- a/src/charts/axis/chartaxiselement.cpp +++ b/src/charts/axis/chartaxiselement.cpp @@ -28,7 +28,7 @@ QT_CHARTS_BEGIN_NAMESPACE -static const char *labelFormatMatchString = "%[\\-\\+#\\s\\d\\.lhjztL]*([dicuoxfegXFEG])"; +static const char *labelFormatMatchString = "%[\\-\\+#\\s\\d\\.\\'lhjztL]*([dicuoxfegXFEG])"; static const char *labelFormatMatchLocalizedString = "^([^%]*)%\\.(\\d+)([defgiEG])(.*)$"; static QRegExp *labelFormatMatcher = 0; static QRegExp *labelFormatMatcherLocalized = 0; |