OpenCoverage

qquickvalidator.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickvalidator.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QQuickIntValidator::QQuickIntValidator(QObject *parent)-
4 : QIntValidator(parent)-
5{-
6}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktextinput
8
7QString QQuickIntValidator::localeName() const-
8{-
9 return
executed 6 times by 1 test: return locale().name();
Executed by:
  • tst_qquicktextinput
locale().name();
executed 6 times by 1 test: return locale().name();
Executed by:
  • tst_qquicktextinput
6
10}-
11-
12void QQuickIntValidator::setLocaleName(const QString &name)-
13{-
14 if (locale().name() != name
locale().name() != nameDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktextinput
FALSEnever evaluated
) {
0-4
15 setLocale(QLocale(name));-
16 localeNameChanged();-
17 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
18}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
19-
20void QQuickIntValidator::resetLocaleName()-
21{-
22 QLocale defaultLocale;-
23 if (locale() != defaultLocale
locale() != defaultLocaleDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktextinput
FALSEnever evaluated
) {
0-4
24 setLocale(defaultLocale);-
25 localeNameChanged();-
26 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
27}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
28QQuickDoubleValidator::QQuickDoubleValidator(QObject *parent)-
29 : QDoubleValidator(parent)-
30{-
31}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
6
32QString QQuickDoubleValidator::localeName() const-
33{-
34 return
executed 6 times by 1 test: return locale().name();
Executed by:
  • tst_qquicktextinput
locale().name();
executed 6 times by 1 test: return locale().name();
Executed by:
  • tst_qquicktextinput
6
35}-
36-
37void QQuickDoubleValidator::setLocaleName(const QString &name)-
38{-
39 if (locale().name() != name
locale().name() != nameDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktextinput
FALSEnever evaluated
) {
0-4
40 setLocale(QLocale(name));-
41 localeNameChanged();-
42 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
43}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
44-
45void QQuickDoubleValidator::resetLocaleName()-
46{-
47 QLocale defaultLocale;-
48 if (locale() != defaultLocale
locale() != defaultLocaleDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktextinput
FALSEnever evaluated
) {
0-4
49 setLocale(defaultLocale);-
50 localeNameChanged();-
51 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
52}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktextinput
4
53-
54-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0