targetSquare judges which square the position falls in. The point scaling calculation method should not be used. The return value of QPoint operator/ will be rounded up. Modified to separate the x and y of position to calculate. Fixes: QTBUG-81842 Change-Id: I70375185a78ba47efe01be3fd490e0fb0f456e17 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> |
||
|---|---|---|
| .. | ||
| .prev_CMakeLists.txt | ||
| CMakeLists.txt | ||
| example.jpg | ||
| main.cpp | ||
| mainwindow.cpp | ||
| mainwindow.h | ||
| piecesmodel.cpp | ||
| piecesmodel.h | ||
| puzzle.pro | ||
| puzzle.qrc | ||
| puzzlewidget.cpp | ||
| puzzlewidget.h | ||