mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Delete past with wheel click on X11
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2093 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -420,15 +420,11 @@ void DiagramView::mousePressEvent(QMouseEvent *e) {
|
|||||||
fresh_focus_in_ = false;
|
fresh_focus_in_ = false;
|
||||||
}
|
}
|
||||||
if (isInteractive() && !scene -> isReadOnly()) {
|
if (isInteractive() && !scene -> isReadOnly()) {
|
||||||
if (e -> buttons() == Qt::MidButton) {
|
|
||||||
//paste(mapToScene(e -> pos()), QClipboard::Selection);
|
|
||||||
} else {
|
|
||||||
if (is_adding_text && e -> buttons() == Qt::LeftButton) {
|
if (is_adding_text && e -> buttons() == Qt::LeftButton) {
|
||||||
addDiagramTextAtPos(mapToScene(e -> pos()));
|
addDiagramTextAtPos(mapToScene(e -> pos()));
|
||||||
is_adding_text = false;
|
is_adding_text = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
QGraphicsView::mousePressEvent(e);
|
QGraphicsView::mousePressEvent(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user