MCPcopy Create free account
hub / github.com/TeXworks/texworks / ScreenCalibrationWidget_unit

Method ScreenCalibrationWidget_unit

unit-tests/UI_test.cpp:231–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void 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
246void TestUI::ScreenCalibrationWidget_paint()
247{

Callers

nothing calls this directly

Calls 3

unitMethod · 0.45
setUnitMethod · 0.45

Tested by

no test coverage detected