mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Revert r4900
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4902 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -49,7 +49,7 @@ DiagramEventAddShape::~DiagramEventAddShape()
|
||||
delete m_help_horiz;
|
||||
delete m_help_verti;
|
||||
|
||||
for (QGraphicsView *v: m_diagram->views())
|
||||
foreach (QGraphicsView *v, m_diagram->views())
|
||||
v->setContextMenuPolicy(Qt::DefaultContextMenu);
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ bool DiagramEventAddShape::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event
|
||||
|
||||
void DiagramEventAddShape::init()
|
||||
{
|
||||
for (QGraphicsView *v: m_diagram->views())
|
||||
foreach (QGraphicsView *v, m_diagram->views())
|
||||
v->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user