mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Implement #746
This commit is contained in:
parent
3b30267fb8
commit
a3732fead6
@ -74,6 +74,14 @@ if pictureflow is not None:
|
||||
self.setFocusPolicy(Qt.WheelFocus)
|
||||
self.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Minimum))
|
||||
|
||||
def wheelEvent(self, ev):
|
||||
ev.accept()
|
||||
if ev.delta() > 0:
|
||||
self.showNext()
|
||||
elif ev.delta() < 0:
|
||||
self.showPrevious()
|
||||
|
||||
|
||||
else:
|
||||
CoverFlow = None
|
||||
DatabaseImages = None
|
||||
|
@ -1347,7 +1347,6 @@ void PictureFlow::mouseReleaseEvent(QMouseEvent* event)
|
||||
emit inputReceived();
|
||||
}
|
||||
|
||||
|
||||
void PictureFlow::paintEvent(QPaintEvent* event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user