mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
fix warning at compil
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2545 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -426,14 +426,20 @@ void DiagramView::mousePressEvent(QMouseEvent *e) {
|
|||||||
switchToVisualisationModeIfNeeded(e);
|
switchToVisualisationModeIfNeeded(e);
|
||||||
fresh_focus_in_ = false;
|
fresh_focus_in_ = false;
|
||||||
}
|
}
|
||||||
if (isInteractive() && !scene -> isReadOnly() && current_behavior > noAction && e -> buttons() == Qt::LeftButton) {
|
if (isInteractive() && !scene -> isReadOnly() && e -> buttons() == Qt::LeftButton) {
|
||||||
switch (current_behavior) {
|
switch (current_behavior) {
|
||||||
|
case noAction:
|
||||||
|
break;
|
||||||
case addingText:
|
case addingText:
|
||||||
addDiagramTextAtPos(mapToScene(e -> pos()));
|
addDiagramTextAtPos(mapToScene(e -> pos()));
|
||||||
break;
|
break;
|
||||||
case addingImage:
|
case addingImage:
|
||||||
addDiagramImageAtPos(mapToScene(e -> pos()));
|
addDiagramImageAtPos(mapToScene(e -> pos()));
|
||||||
break;
|
break;
|
||||||
|
case dragView:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
current_behavior = noAction;
|
current_behavior = noAction;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user