[qet] [2093] Delete past with wheel click on X11 |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2093
Author: cfdev
Date: 2013-04-08 21:46:11 +0200 (Mon, 08 Apr 2013)
Log Message:
-----------
Delete past with wheel click on X11
Modified Paths:
--------------
trunk/sources/diagramview.cpp
Modified: trunk/sources/diagramview.cpp
===================================================================
--- trunk/sources/diagramview.cpp 2013-04-08 19:38:50 UTC (rev 2092)
+++ trunk/sources/diagramview.cpp 2013-04-08 19:46:11 UTC (rev 2093)
@@ -419,16 +419,12 @@
switchToVisualisationModeIfNeeded(e);
fresh_focus_in_ = false;
}
- if (isInteractive() && !scene -> isReadOnly()) {
- if (e -> buttons() == Qt::MidButton) {
- //paste(mapToScene(e -> pos()), QClipboard::Selection);
- } else {
- if (is_adding_text && e -> buttons() == Qt::LeftButton) {
- addDiagramTextAtPos(mapToScene(e -> pos()));
- is_adding_text = false;
- }
- }
+ if (isInteractive() && !scene -> isReadOnly()) {
+ if (is_adding_text && e -> buttons() == Qt::LeftButton) {
+ addDiagramTextAtPos(mapToScene(e -> pos()));
+ is_adding_text = false;
}
+ }
QGraphicsView::mousePressEvent(e);
}