Use globalPosition()

This commit is contained in:
Jonas Kvinge
2020-07-18 04:09:36 +02:00
parent e5b3df41e9
commit 4328831fcd
2 changed files with 10 additions and 2 deletions

View File

@@ -102,7 +102,11 @@ void AnalyzerContainer::mouseReleaseEvent(QMouseEvent *e) {
if (engine_->type() != Engine::EngineType::GStreamer) return;
if (e->button() == Qt::RightButton) {
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
context_menu_->popup(e->globalPosition().toPoint());
#else
context_menu_->popup(e->globalPos());
#endif
}
}