mirror of https://github.com/vitalif/openscad
Support both Qt4 and Qt5
parent
bdc52fa6e6
commit
54ffa54fa3
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue