Changeset a2c7c3 for src/UIElements/Qt4/QtMainWindow.cpp
- Timestamp:
- Nov 3, 2025, 7:52:35 AM (2 months ago)
- Branches:
- Candidate_v1.7.1, stable
- Children:
- b6f2d2
- Parents:
- 49719b
- File:
-
- 1 edited
-
src/UIElements/Qt4/QtMainWindow.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/QtMainWindow.cpp
r49719b ra2c7c3 203 203 void QtMainWindow::slotContextMenuRequested(const QPoint &pos) 204 204 { 205 // pick the atoms menu 206 QtMenu<QMenu_tooltip> * atoms_submenu = MainMenu->findSubmenu("atom"); 205 // switch to atoms or molecule depending on selection mode 206 const string menu_name = 207 glWorldView->getSelectionMode() == GLWorldScene::SelectAtom ? "atom" : "molecule"; 208 QtMenu<QMenu_tooltip> * atoms_submenu = MainMenu->findSubmenu(menu_name); 207 209 // and show it 208 210 if (atoms_submenu != NULL) { 209 211 atoms_submenu->popup(glWorldView->mapToGlobal(pos)); 210 212 } else { 211 ELOG(1, "Could not find atomsubmenu.");213 ELOG(1, "Could not find " << menu_name << " submenu."); 212 214 } 213 215 }
Note:
See TracChangeset
for help on using the changeset viewer.
