mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Free selection : minor
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5733 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -540,6 +540,8 @@ void DiagramView::mouseReleaseEvent(QMouseEvent *e)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (m_free_rubberband.count() > 3)
|
||||||
|
{
|
||||||
//Popup a menu with an action to create conductors between
|
//Popup a menu with an action to create conductors between
|
||||||
//all selected terminals.
|
//all selected terminals.
|
||||||
QAction *act = new QAction(tr("Connecter les bornes sélectionné"), this);
|
QAction *act = new QAction(tr("Connecter les bornes sélectionné"), this);
|
||||||
@@ -552,6 +554,7 @@ void DiagramView::mouseReleaseEvent(QMouseEvent *e)
|
|||||||
QMenu *menu = new QMenu(this);
|
QMenu *menu = new QMenu(this);
|
||||||
menu->addAction(act);
|
menu->addAction(act);
|
||||||
menu->popup(e->globalPos());
|
menu->popup(e->globalPos());
|
||||||
|
}
|
||||||
|
|
||||||
m_free_rubberbanding = false;
|
m_free_rubberbanding = false;
|
||||||
m_free_rubberband = QPolygon();
|
m_free_rubberband = QPolygon();
|
||||||
|
|||||||
Reference in New Issue
Block a user