Fix deprecated Qt functions
Change the way to get the screen size Remove Qt::WindowFlags Change function to process events from mouse wheel
This commit is contained in:
1 parent
4c6a4aba65
commit
039887f2e6
6 files changed
+17
-10
No files matched your search
+1
-1
@@ -730,7 +730,7 @@ void ViewArea::wheelEvent( QWheelEvent* event )
|
||||
|
||||
if( event->modifiers() & Qt::ControlModifier )
|
||||
{
|
||||
scale = 0.001 * event->delta();
|
||||
scale = 0.001 * event->angleDelta().y();
|
||||
if( scale > 0 )
|
||||
scale = 1.25;
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user