9#if QT_CONFIG(validator)
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
49QQuickIntValidator::QQuickIntValidator(QObject *parent)
50 : QIntValidator(parent)
55
56
57
58
59
60
62QString QQuickIntValidator::localeName()
const
64 return locale().name();
67void QQuickIntValidator::setLocaleName(
const QString &name)
69 if (locale().name() != name) {
70 setLocale(QLocale(name));
71 emit localeNameChanged();
75void QQuickIntValidator::resetLocaleName()
77 QLocale defaultLocale;
78 if (locale() != defaultLocale) {
79 setLocale(defaultLocale);
80 emit localeNameChanged();
85
86
87
88
89
91
92
93
94
95
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
134QQuickDoubleValidator::QQuickDoubleValidator(QObject *parent)
135 : QDoubleValidator(parent)
140
141
142
143
144
145
147QString QQuickDoubleValidator::localeName()
const
149 return locale().name();
152void QQuickDoubleValidator::setLocaleName(
const QString &name)
154 if (locale().name() != name) {
155 setLocale(QLocale(name));
156 emit localeNameChanged();
160void QQuickDoubleValidator::resetLocaleName()
162 QLocale defaultLocale;
163 if (locale() != defaultLocale) {
164 setLocale(defaultLocale);
165 emit localeNameChanged();
170
171
172
173
174
176
177
178
179
180
182
183
184
185
186
188
189
190
191
192
193
194
195
198
199
200
201
202
203
204
205
206
207
208
209
210
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
247#include "moc_qquickvalidator_p.cpp"