Skip to content

Commit 3f41be0

Browse files
committed
Ensure QPoint is not passed floats
Closes #39
1 parent 6ed83b7 commit 3f41be0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

confirmation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ def on_reviewer_did_answer_card(self, card, ease) :
5555
xref = 0
5656

5757
# apply values
58-
x1 = aw.mapToGlobal(QPoint(x1+int(round(aw.width()/2, 0)), 0)).x()
59-
x2 = aw.mapToGlobal(QPoint(x2+int(round(aw.width()/2, 0)), 0)).x()
60-
x3 = aw.mapToGlobal(QPoint(x3+int(round(aw.width()/2, 0)), 0)).x()
61-
x4 = aw.mapToGlobal(QPoint(x4+int(round(aw.width()/2, 0)), 0)).x()
58+
x1 = aw.mapToGlobal(QPoint(int(x1+round(aw.width()/2, 0)), 0)).x()
59+
x2 = aw.mapToGlobal(QPoint(int(x2+round(aw.width()/2, 0)), 0)).x()
60+
x3 = aw.mapToGlobal(QPoint(int(x3+round(aw.width()/2, 0)), 0)).x()
61+
x4 = aw.mapToGlobal(QPoint(int(x4+round(aw.width()/2, 0)), 0)).x()
6262
xref = 1
6363

64-
y = aw.mapToGlobal(QPoint(0, y+aw.height())).y()
64+
y = aw.mapToGlobal(QPoint(0, int(y+aw.height()))).y()
6565

6666
y = max(0, y)
6767

0 commit comments

Comments
 (0)