mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More PyQt6 nonsense
This commit is contained in:
parent
271f988b72
commit
ca2003b405
@ -1143,6 +1143,7 @@ class GridView(QListView):
|
||||
pass
|
||||
|
||||
def moveCursor(self, action, modifiers):
|
||||
action = QAbstractItemView.CursorAction(action)
|
||||
index = QListView.moveCursor(self, action, modifiers)
|
||||
if action in (QAbstractItemView.CursorAction.MoveLeft, QAbstractItemView.CursorAction.MoveRight) and index.isValid():
|
||||
ci = self.currentIndex()
|
||||
|
@ -1233,6 +1233,7 @@ class BooksView(QTableView): # {{{
|
||||
|
||||
def moveCursor(self, action, modifiers):
|
||||
orig = self.currentIndex()
|
||||
action = QAbstractItemView.CursorAction(action)
|
||||
index = QTableView.moveCursor(self, action, modifiers)
|
||||
if action == QAbstractItemView.CursorAction.MovePageDown:
|
||||
moved = index.row() - orig.row()
|
||||
|
Loading…
x
Reference in New Issue
Block a user