History

Merge branch 'master' of https://github.com/highfidelity/hifi into applications_diet

Atlante45 committed 11 years ago

Commit 11a2eca2 parents 2039895 7632dbe92 files · +607 −340Browse files

Showing the changes to interface/src/Menu.cpp (1 of 92 files). Show all

Unified · Split

interface/src/Menu.cpp+5−3
@@ -33,6 +33,8 @@ · 32 unmodified lines
3333 #include <AddressManager.h>
3434 #include <DependencyManager.h>
3535 #include <MainWindow.h>
36+#include <GlowEffect.h>
37+#include <PathUtils.h>
3638 #include <UUID.h>
3739 #include <UserActivityLogger.h>
3840 #include <XmppClient.h>
@@ -55,7 +57,6 @@ · 16 unmodified lines
5557 #include "ui/LoginDialog.h"
5658 #include "ui/NodeBounds.h"
5759
58−
5960 Menu* Menu::_instance = NULL;
6061
6162 Menu* Menu::getInstance() {
@@ -247,7 +248,7 @@ Menu::Menu() : · 185 unmodified lines
247248 connect(&xmppClient, &QXmppClient::connected, this, &Menu::toggleChat);
248249 connect(&xmppClient, &QXmppClient::disconnected, this, &Menu::toggleChat);
249250
250− QDir::setCurrent(Application::resourcesPath());
251+ QDir::setCurrent(PathUtils::resourcesPath());
251252 // init chat window to listen chat
252253 _chatWindow = new ChatWindow(Application::getInstance()->getWindow());
253254 #endif
@@ -425,7 +426,8 @@ Menu::Menu() : · 171 unmodified lines
425426 true,
426427 appInstance,
427428 SLOT(setRenderVoxels(bool)));
428− addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::EnableGlowEffect, 0, true);
429+ addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::EnableGlowEffect, 0, true,
430+ DependencyManager::get<GlowEffect>(), SLOT(toggleGlowEffect(bool)));
429431
430432 addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::Wireframe, Qt::ALT | Qt::Key_W, false);
431433 addActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::LodTools, Qt::SHIFT | Qt::Key_L, this, SLOT(lodTools()));