mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Replace DVEventAddImage by DiagramEventAddImage.
Use is unchanged. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4257 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -551,15 +551,13 @@ void DiagramView::wheelEvent(QWheelEvent *e)
|
||||
{
|
||||
if (m_event_interface && m_event_interface->wheelEvent(e)) return;
|
||||
|
||||
//Zoom and scrolling
|
||||
if ( gestures() ) {
|
||||
if (e -> modifiers() & Qt::ControlModifier)
|
||||
e -> delta() > 0 ? zoomInSlowly() : zoomOutSlowly();
|
||||
else
|
||||
QGraphicsView::wheelEvent(e);
|
||||
} else {
|
||||
//Zoom and scrolling
|
||||
if (gestures() && (e->modifiers() & Qt::ControlModifier))
|
||||
e -> delta() > 0 ? zoomInSlowly() : zoomOutSlowly();
|
||||
else if (e->modifiers() == Qt::NoModifier)
|
||||
e -> delta() > 0 ? zoomIn(): zoomOut();
|
||||
}
|
||||
else
|
||||
QGraphicsView::wheelEvent(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user