switched Want Delta menu to use new Qt menus

This commit is contained in:
ZappoMan 2013-05-14 12:19:23 -07:00
parent a1902e3dc9
commit 43e190fe3c
2 changed files with 7 additions and 0 deletions

View file

@ -1036,6 +1036,10 @@ void Application::setWantsResIn(bool wantsResIn) {
_myAvatar.setWantResIn(wantsResIn); _myAvatar.setWantResIn(wantsResIn);
} }
void Application::setWantsDelta(bool wantsDelta) {
_myAvatar.setWantDelta(wantsDelta);
}
void Application::initMenu() { void Application::initMenu() {
QMenuBar* menuBar = new QMenuBar(); QMenuBar* menuBar = new QMenuBar();
_window->setMenuBar(menuBar); _window->setMenuBar(menuBar);
@ -1096,10 +1100,12 @@ void Application::initMenu() {
debugMenu->addAction("Calculate Tree Stats", this, SLOT(doTreeStats()), Qt::SHIFT | Qt::Key_S); debugMenu->addAction("Calculate Tree Stats", this, SLOT(doTreeStats()), Qt::SHIFT | Qt::Key_S);
debugMenu->addAction("Wants Res-In", this, SLOT(setWantsResIn(bool)))->setCheckable(true); debugMenu->addAction("Wants Res-In", this, SLOT(setWantsResIn(bool)))->setCheckable(true);
debugMenu->addAction("Wants Monochrome", this, SLOT(setWantsMonochrome(bool)))->setCheckable(true); debugMenu->addAction("Wants Monochrome", this, SLOT(setWantsMonochrome(bool)))->setCheckable(true);
debugMenu->addAction("Wants View Delta Sending", this, SLOT(setWantsDelta(bool)))->setCheckable(true);
} }
void Application::updateFrustumRenderModeAction() { void Application::updateFrustumRenderModeAction() {
switch (_frustumDrawingMode) { switch (_frustumDrawingMode) {
default:
case FRUSTUM_DRAW_MODE_ALL: case FRUSTUM_DRAW_MODE_ALL:
_frustumRenderModeAction->setText("Render Mode - All"); _frustumRenderModeAction->setText("Render Mode - All");
break; break;

View file

@ -87,6 +87,7 @@ private slots:
void doTreeStats(); void doTreeStats();
void setWantsMonochrome(bool wantsMonochrome); void setWantsMonochrome(bool wantsMonochrome);
void setWantsResIn(bool wantsResIn); void setWantsResIn(bool wantsResIn);
void setWantsDelta(bool wantsDelta);
private: private: