This commit is contained in:
Kovid Goyal 2008-06-04 15:01:47 -07:00
parent 3b30267fb8
commit a3732fead6
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -1347,7 +1347,6 @@ void PictureFlow::mouseReleaseEvent(QMouseEvent* event)
emit inputReceived();
}
void PictureFlow::paintEvent(QPaintEvent* event)
{
Q_UNUSED(event);