@@ -1324,32 +1324,56 @@ def testGuiEditor_Zoom(qtbot, nwGUI, projPath, mockRnd):
13241324 # Zoom in and out with Ctrl+Scroll wheel
13251325 position = QPointF (10 , 10 )
13261326 zoomInEvent = QWheelEvent (
1327- position , position , QPoint (0 , 0 ), QPoint (0 , 120 ),
1328- Qt .MouseButton .NoButton , QtModCtrl , Qt .ScrollPhase .NoScrollPhase , False ,
1327+ position ,
1328+ position ,
1329+ QPoint (0 , 0 ),
1330+ QPoint (0 , 120 ),
1331+ Qt .MouseButton .NoButton ,
1332+ QtModCtrl ,
1333+ Qt .ScrollPhase .NoScrollPhase ,
1334+ False ,
13291335 )
13301336 docEditor .wheelEvent (zoomInEvent )
13311337 assert docEditor .font ().pointSizeF () == basePt + 1
13321338
13331339 zoomOutEvent = QWheelEvent (
1334- position , position , QPoint (0 , 0 ), QPoint (0 , - 120 ),
1335- Qt .MouseButton .NoButton , QtModCtrl , Qt .ScrollPhase .NoScrollPhase , False ,
1340+ position ,
1341+ position ,
1342+ QPoint (0 , 0 ),
1343+ QPoint (0 , - 120 ),
1344+ Qt .MouseButton .NoButton ,
1345+ QtModCtrl ,
1346+ Qt .ScrollPhase .NoScrollPhase ,
1347+ False ,
13361348 )
13371349 docEditor .wheelEvent (zoomOutEvent )
13381350 assert docEditor .font ().pointSizeF () == basePt
13391351
13401352 # A no-op Ctrl+Scroll (no vertical delta) does not zoom either way
13411353 noopEvent = QWheelEvent (
1342- position , position , QPoint (0 , 0 ), QPoint (0 , 0 ),
1343- Qt .MouseButton .NoButton , QtModCtrl , Qt .ScrollPhase .NoScrollPhase , False ,
1354+ position ,
1355+ position ,
1356+ QPoint (0 , 0 ),
1357+ QPoint (0 , 0 ),
1358+ Qt .MouseButton .NoButton ,
1359+ QtModCtrl ,
1360+ Qt .ScrollPhase .NoScrollPhase ,
1361+ False ,
13441362 )
13451363 docEditor .wheelEvent (noopEvent )
13461364 assert docEditor .font ().pointSizeF () == basePt
13471365
13481366 # A regular (non-Ctrl) wheel scroll does not zoom, and instead falls
13491367 # through to the normal scroll handling
13501368 scrollEvent = QWheelEvent (
1351- position , position , QPoint (0 , 0 ), QPoint (0 , 120 ),
1352- Qt .MouseButton .NoButton , QtModNone , Qt .ScrollPhase .NoScrollPhase , False ,
1369+ position ,
1370+ position ,
1371+ QPoint (0 , 0 ),
1372+ QPoint (0 , 120 ),
1373+ Qt .MouseButton .NoButton ,
1374+ QtModNone ,
1375+ Qt .ScrollPhase .NoScrollPhase ,
1376+ False ,
13531377 )
13541378 docEditor .wheelEvent (scrollEvent )
13551379 assert docEditor .font ().pointSizeF () == basePt
0 commit comments