mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Clean wheelEvent in diagramview and add the same system to element Editor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2115 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -293,7 +293,7 @@ void DiagramView::handleTitleBlockDrop(QDropEvent *e) {
|
||||
}
|
||||
|
||||
/**
|
||||
Passe le Diagram en mode visualisation
|
||||
Set the Diagram in visualisation mode
|
||||
*/
|
||||
void DiagramView::setVisualisationMode() {
|
||||
setDragMode(ScrollHandDrag);
|
||||
@@ -303,7 +303,7 @@ void DiagramView::setVisualisationMode() {
|
||||
}
|
||||
|
||||
/**
|
||||
Passe le Diagram en mode Selection
|
||||
Set the Diagram in Selection mode
|
||||
*/
|
||||
void DiagramView::setSelectionMode() {
|
||||
setDragMode(RubberBandDrag);
|
||||
@@ -457,17 +457,6 @@ void DiagramView::wheelEvent(QWheelEvent *e) {
|
||||
QAbstractScrollArea::wheelEvent(e);
|
||||
}
|
||||
}
|
||||
// Or select visualisation or selection mode
|
||||
else{
|
||||
if (!is_moving_view_) {
|
||||
setVisualisationMode();
|
||||
is_moving_view_ = true;
|
||||
}
|
||||
else{
|
||||
setSelectionMode();
|
||||
is_moving_view_ = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user