Support both Qt4 and Qt5

master
Marius Kintel 2015-02-22 11:35:37 -05:00
parent bdc52fa6e6
commit 54ffa54fa3
1 changed files with 4 additions and 0 deletions

View File

@ -308,7 +308,11 @@ bool QGLView::save(const char *filename)
void QGLView::wheelEvent(QWheelEvent *event)
{
#if QT_VERSION >= 0x050000
this->cam.zoom(event->angleDelta().y());
#else
this->cam.zoom(event->delta());
#endif
updateGL();
}