Changeset 71423c
- Timestamp:
- Oct 31, 2025, 10:21:54 PM (2 months ago)
- Branches:
- Candidate_v1.7.1, stable
- Children:
- 49719b
- Parents:
- 511f02
- git-author:
- Frederik Heber <frederik.heber@…> (10/31/25 22:10:16)
- git-committer:
- Frederik Heber <frederik.heber@…> (10/31/25 22:21:54)
- Location:
- src/UIElements
- Files:
-
- 2 edited
-
Qt4/QtMainWindow.cpp (modified) (2 diffs)
-
Views/Qt4/Qt3D/GLWorldView.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/QtMainWindow.cpp
r511f02 r71423c 138 138 139 139 // add context menu on right click 140 glWorldView->setContextMenuPolicy(Qt::CustomContextMenu); 140 // NOTE(FH): The following did not emit the customContextMenuRequested on right click, had to trigger manually 141 // glWorldView->setContextMenuPolicy(Qt::CustomContextMenu); 141 142 connect(glWorldView, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(slotContextMenuRequested(const QPoint&))); 142 143 … … 211 212 } 212 213 } 214 213 215 QtMainWindow::~QtMainWindow() 214 216 { -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp
r511f02 r71423c 609 609 // check for right mouse button 610 610 if (event->button() == Qt::RightButton) { 611 // NOTE(FH): simply setting setContextMenuPolicy(Qt::CustomContextMenu) did not emit the signal ... 611 612 emit customContextMenuRequested(event->pos()); 613 event->accept(); 614 return; 612 615 } 613 616
Note:
See TracChangeset
for help on using the changeset viewer.
