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 | qApp, SLOT(setActiveEyeTracker())); | 495 | qApp, SLOT(setActiveEyeTracker())); |
| 496 | #endif | 496 | #endif |
| 497 | 497 | ||
| 498 | addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::AvatarReceiveStats, 0, false, | 498 | action = addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::AvatarReceiveStats, 0, false); |
| 499 | avatarManager.data(), SLOT(setShouldShowReceiveStats(bool))); | 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 | addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::FixGaze, 0, false); | 507 | addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::FixGaze, 0, false); |
| 505 | addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::AnimDebugDrawDefaultPose, 0, false, | 508 | addCheckableActionToQMenuAndActionHash(avatarDebugMenu, MenuOption::AnimDebugDrawDefaultPose, 0, false, |
| 506 | avatar.get(), SLOT(setEnableDebugDrawDefaultPose(bool))); | 509 | avatar.get(), SLOT(setEnableDebugDrawDefaultPose(bool))); |