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:
blacksun
2015-11-12 17:01:08 +00:00
parent 635aec4ad2
commit ce75710f6c
6 changed files with 243 additions and 235 deletions

View File

@@ -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);
}