| 229 | } |
| 230 | |
| 231 | void TestUI::ScreenCalibrationWidget_unit() |
| 232 | { |
| 233 | QLocale::setDefault(QLocale(QLocale::German)); |
| 234 | QCOMPARE(MyScreenCalibrationWidget().unit(), 0); |
| 235 | QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates)); |
| 236 | MyScreenCalibrationWidget w; |
| 237 | QCOMPARE(w.unit(), 1); |
| 238 | w.setUnit(0); |
| 239 | QCOMPARE(w.unit(), 0); |
| 240 | w.setUnit(2); |
| 241 | QCOMPARE(w.unit(), 0); |
| 242 | |
| 243 | QLocale::setDefault(QLocale::system()); |
| 244 | } |
| 245 | |
| 246 | void TestUI::ScreenCalibrationWidget_paint() |
| 247 | { |
nothing calls this directly
no test coverage detected