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
@ -73,6 +73,14 @@ if pictureflow is not None:
|
|||||||
self.setMinimumSize(QSize(int(2.35*0.67*height), (5/3.)*height+25))
|
self.setMinimumSize(QSize(int(2.35*0.67*height), (5/3.)*height+25))
|
||||||
self.setFocusPolicy(Qt.WheelFocus)
|
self.setFocusPolicy(Qt.WheelFocus)
|
||||||
self.setSizePolicy(QSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.Minimum))
|
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:
|
else:
|
||||||
CoverFlow = None
|
CoverFlow = None
|
||||||
|
@ -1347,7 +1347,6 @@ void PictureFlow::mouseReleaseEvent(QMouseEvent* event)
|
|||||||
emit inputReceived();
|
emit inputReceived();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void PictureFlow::paintEvent(QPaintEvent* event)
|
void PictureFlow::paintEvent(QPaintEvent* event)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user