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

Method ScreenCalibrationWidget_changeEvent

unit-tests/UI_test.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void TestUI::ScreenCalibrationWidget_changeEvent()
255{
256 Tw::UI::ScreenCalibrationWidget w;
257 QFont f(w.font());
258
259 w.setGeometry(0, 0, 300, 20);
260 QImage before = w.grab().toImage();
261
262 f.setPointSize(2 * f.pointSize());
263 w.setFont(f);
264
265 QVERIFY(w.grab().toImage() != before);
266}
267
268void TestUI::ScreenCalibrationWidget_contextMenu()
269{

Callers

nothing calls this directly

Calls 1

setFontMethod · 0.80

Tested by

no test coverage detected