From e2f9ef1e2bf2b203344aebf0d39968189cd48ae4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 20 Dec 2020 11:25:52 +0530 Subject: [PATCH] More stupid PyQt enums --- src/calibre/gui2/library/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/library/views.py b/src/calibre/gui2/library/views.py index c0f561beb6..fddd04cc7b 100644 --- a/src/calibre/gui2/library/views.py +++ b/src/calibre/gui2/library/views.py @@ -236,7 +236,7 @@ class BooksView(QTableView): # {{{ for wv in self, self.pin_view: if not tweaks['horizontal_scrolling_per_column']: - wv.setHorizontalScrollMode(self.ScrollPerPixel) + wv.setHorizontalScrollMode(QAbstractItemView.ScrollMode.ScrollPerPixel) wv.setEditTriggers(QAbstractItemView.EditTrigger.EditKeyPressed) if tweaks['doubleclick_on_library_view'] == 'edit_cell':