mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Resore qetshapeitem::polygon contextMenuEvent
reverted by commit: 0a8376c189b4deff24d26dd26ddb3ceb1c9c8a4c see: https://qelectrotech.org/bugtracker/view.php?id=220 and https://qelectrotech.org/forum/viewtopic.php?pid=18204#p18204
This commit is contained in:
parent
7ab08bc99f
commit
9354e1ad8d
@ -1219,6 +1219,11 @@ QList<QAction *> DiagramView::contextMenuActions() const
|
|||||||
*/
|
*/
|
||||||
void DiagramView::contextMenuEvent(QContextMenuEvent *e)
|
void DiagramView::contextMenuEvent(QContextMenuEvent *e)
|
||||||
{
|
{
|
||||||
|
QGraphicsView::contextMenuEvent(e);
|
||||||
|
if(e->isAccepted())
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
if (auto qgi = m_diagram->itemAt(mapToScene(e->pos()), transform()))
|
if (auto qgi = m_diagram->itemAt(mapToScene(e->pos()), transform()))
|
||||||
{
|
{
|
||||||
if (!qgi->isSelected()) {
|
if (!qgi->isSelected()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user