When zooming we have to recompile the rotation GlList as zoom factor is required to calculate the rotation.

svn path=/trunk/KDE/kdebase/workspace/; revision=971915
This commit is contained in:
Martin Gräßlin 2009-05-23 17:18:20 +00:00
parent f9be59fdc3
commit d5c7fa7957

View file

@ -1913,9 +1913,11 @@ void CubeEffect::grabbedKeyboardEvent( QKeyEvent* e )
case Qt::Key_Plus: case Qt::Key_Plus:
zoom -= 10.0; zoom -= 10.0;
zoom = qMax( -zPosition, zoom ); zoom = qMax( -zPosition, zoom );
recompileList = true;
break; break;
case Qt::Key_Minus: case Qt::Key_Minus:
zoom += 10.0f; zoom += 10.0f;
recompileList = true;
break; break;
default: default:
break; break;