path: root/src/corelib/tools/qdatetimeparser_p.h
diff options
authorEdward Welbourne <>2016-01-18 17:14:17 +0100
committerEdward Welbourne <>2016-04-08 14:45:38 +0000
commitc671e66802b75b511ad85347c70f6193134d81ca (patch)
tree15c937d20cdc426c39310a743eefd6daa67426b8 /src/corelib/tools/qdatetimeparser_p.h
parentee22fe13cda74c5ef5ee7b6db1b75d2837e43672 (diff)
QDateTimeParser: mediate QLocale's meddling via a setter.
The former has (for now) nothing private, so QLocale got away with setting its .defaultLocale explicitly; provide a setter method by which it can do that, to allow scope for later encapsulation. Change-Id: I77fc5fc8f868fc7cf8d51eb1c5d18926c61cbf78 Reviewed-by: Marc Mutz <>
Diffstat (limited to 'src/corelib/tools/qdatetimeparser_p.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qdatetimeparser_p.h b/src/corelib/tools/qdatetimeparser_p.h
index 257cb6e2cc..d6c4d615db 100644
--- a/src/corelib/tools/qdatetimeparser_p.h
+++ b/src/corelib/tools/qdatetimeparser_p.h
@@ -218,6 +218,7 @@ public:
FieldInfo fieldInfo(int index) const;
+ void setDefaultLocale(const QLocale &loc) { defaultLocale = loc; }
virtual QDateTime getMinimum() const;
virtual QDateTime getMaximum() const;
virtual int cursorPosition() const { return -1; }