--- frescobaldi_app/qpageview/shadow.py.orig 2021-10-22 11:18:50.427497680 -0500
+++ frescobaldi_app/qpageview/shadow.py 2021-10-22 11:17:11.795956469 -0500
@@ -40,7 +40,7 @@
width = self._pageLayout.spacing / 2
# make the rect slightly larger, so we "see" shadow of pages that
# would be outside view normally.
- rect = ev.rect().adjusted(-width, -width, width / 2, width / 2)
+ rect = ev.rect().adjusted(int(-width), int(-width), int(width / 2), int(width / 2))
painter = QPainter(self.viewport())
for page, rect in self.pagesToPaint(rect, painter):
self.drawDropShadow(page, painter, width)
--- frescobaldi_app/qpageview/scrollarea.py~ 2021-10-27 11:22:52.257739052 -0500
+++ frescobaldi_app/qpageview/scrollarea.py 2021-10-27 11:24:01.380292302 -0500
@@ -186,9 +186,9 @@
else:
viewport = self.viewport()
vbar.setRange(0, h - viewport.height())
- vbar.setPageStep(viewport.height() * .9)
+ vbar.setPageStep(viewport.height() * int(.9))
hbar.setRange(0, w - viewport.width())
- hbar.setPageStep(viewport.width() * .9)
+ hbar.setPageStep(viewport.width() * int(.9))
def scrollOffset(self):
"""Return the current scroll offset."""
--- frescobaldi_app/qpageview/shadow.py~ 2021-10-27 11:30:20.542841719 -0500
+++ frescobaldi_app/qpageview/shadow.py 2021-10-27 11:33:51.497472301 -0500
@@ -53,7 +53,7 @@
"""
width = round(width)
- rect = page.rect().adjusted(width / 2, width / 2, 0, 0)
+ rect = page.rect().adjusted(int(width / 2), int(width / 2), 0, 0)
color = QColor(Qt.black)
pen = QPen()
pen.setWidth(1)