]> sigrok.org Git - pulseview.git/commitdiff
Use QMenu->popup() instead of QMenu->exec() everywhere
authorSoeren Apel <redacted>
Sat, 13 Oct 2018 19:35:09 +0000 (21:35 +0200)
committerSoeren Apel <redacted>
Sat, 13 Oct 2018 19:49:17 +0000 (21:49 +0200)
pv/views/trace/header.cpp
pv/views/trace/marginwidget.cpp
pv/views/trace/view.cpp

index c5510fcb40c44a8c6cf3ad4631736b51fac061ea..fd2d85e227c4b70e82ecfcf415b7da9a5f0f4816 100644 (file)
@@ -142,7 +142,7 @@ void Header::contextMenuEvent(QContextMenuEvent *event)
                menu->addAction(group);
        }
 
-       menu->exec(event->globalPos());
+       menu->popup(event->globalPos());
 }
 
 void Header::keyPressEvent(QKeyEvent *event)
index 7b7503577ed53cbba888298f97af8892d4700751..f0d50c97b900abf334b4807e6c75ab3c7ac844a9 100644 (file)
@@ -59,7 +59,7 @@ void MarginWidget::contextMenuEvent(QContextMenuEvent *event)
 
        QMenu *menu = r->create_header_context_menu(this);
        if (menu)
-               menu->exec(event->globalPos());
+               menu->popup(event->globalPos());
 }
 
 void MarginWidget::keyPressEvent(QKeyEvent *event)
index 625722d4308f9e3128c4f6dd42d2d49e6e8a52b9..375f5754c7750a5277e538044a8d6f122f27fb44 100644 (file)
@@ -1382,7 +1382,7 @@ void View::contextMenuEvent(QContextMenuEvent *event)
 
        QMenu *menu = r->create_view_context_menu(this, pos);
        if (menu)
-               menu->exec(event->globalPos());
+               menu->popup(event->globalPos());
 }
 
 void View::resizeEvent(QResizeEvent* event)