more cleanup in preparation for moving Avatar class to lib
Showing the changes to interface/src/Menu.cpp (1 of 16 files). Show all
Unified · Split
| @@ -495,12 +495,15 @@ Menu::Menu() { · 494 unmodified lines | ||
| 495 | 495 | qApp, SLOT(setActiveEyeTracker())); |
| 496 | 496 | #endif |
| 497 | 497 | |
| 498 | − addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::AvatarReceiveStats, 0, false, | |
| 499 | − avatarManager.data(), SLOT(setShouldShowReceiveStats(bool))); | |
| 498 | + action = addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::AvatarReceiveStats, 0, false); | |
| 499 | + connect(action, &QAction::triggered, [this]{ Avatar::setShowReceiveStats(isOptionChecked(MenuOption::AvatarReceiveStats)); }); | |
| 500 | + action = addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::ShowBoundingCollisionShapes, 0, false); | |
| 501 | + connect(action, &QAction::triggered, [this]{ Avatar::setShowCollisionShapes(isOptionChecked(MenuOption::ShowBoundingCollisionShapes)); }); | |
| 502 | + action = addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::ShowMyLookAtVectors, 0, false); | |
| 503 | + connect(action, &QAction::triggered, [this]{ Avatar::setShowMyLookAtVectors(isOptionChecked(MenuOption::ShowMyLookAtVectors)); }); | |
| 504 | + action = addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::ShowOtherLookAtVectors, 0, false); | |
| 505 | + connect(action, &QAction::triggered, [this]{ Avatar::setShowOtherLookAtVectors(isOptionChecked(MenuOption::ShowOtherLookAtVectors)); }); | |
| 500 | 506 | |
| 501 | − addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::RenderBoundingCollisionShapes); | |
| 502 | − addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::RenderMyLookAtVectors, 0, false); | |
| 503 | − addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::RenderOtherLookAtVectors, 0, false); | |
| 504 | 507 | addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::FixGaze, 0, false); |
| 505 | 508 | addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::AnimDebugDrawDefaultPose, 0, false, |
| 506 | 509 | avatar.get(), SLOT(setEnableDebugDrawDefaultPose(bool))); |