History

Merge branch 'master' of github.com:highfidelity/hifi into av-ent-misc-fixes

Seth Alves committed 8 years ago

Commit df07b662 parents 93fd2a6 e07003382 files · +3440 −975Browse files

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

Unified · Split

interface/src/Application.cpp+13−1
@@ -203,6 +203,8 @@ · 202 unmodified lines
203203 #include "commerce/Wallet.h"
204204 #include "commerce/QmlCommerce.h"
205205
206+#include "webbrowser/WebBrowserSuggestionsEngine.h"
207+
206208 // On Windows PC, NVidia Optimus laptop, we want to enable NVIDIA GPU
207209 // FIXME seems to be broken.
208210 #if defined(Q_OS_WIN)
@@ -1392,7 +1394,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1183 unmodified lines
13921394 // Make sure we don't time out during slow operations at startup
13931395 updateHeartbeat();
13941396
1395−
13961397 QTimer* settingsTimer = new QTimer();
13971398 moveToNewNamedThread(settingsTimer, "Settings Thread", [this, settingsTimer]{
13981399 connect(qApp, &Application::beforeAboutToQuit, [this, settingsTimer]{
@@ -1823,6 +1824,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 424 unmodified lines
18231824 // Preload Tablet sounds
18241825 DependencyManager::get<TabletScriptingInterface>()->preloadSounds();
18251826
1827+ _pendingIdleEvent = false;
1828+ _pendingRenderEvent = false;
1829+
18261830 qCDebug(interfaceapp) << "Metaverse session ID is" << uuidStringWithoutCurlyBraces(accountManager->getSessionID());
18271831 }
18281832
@@ -2221,6 +2225,7 @@ void Application::initializeUi() { · 392 unmodified lines
22212225 QmlCommerce::registerType();
22222226 qmlRegisterType<ResourceImageItem>("Hifi", 1, 0, "ResourceImageItem");
22232227 qmlRegisterType<Preference>("Hifi", 1, 0, "Preference");
2228+ qmlRegisterType<WebBrowserSuggestionsEngine>("HifiWeb", 1, 0, "WebBrowserSuggestionsEngine");
22242229
22252230 auto offscreenUi = DependencyManager::get<OffscreenUi>();
22262231 offscreenUi->create();
@@ -4479,8 +4484,11 @@ void Application::resetPhysicsReadyInformation() { · 2252 unmodified lines
44794484
44804485 void Application::reloadResourceCaches() {
44814486 resetPhysicsReadyInformation();
4487+
44824488 // Query the octree to refresh everything in view
44834489 _lastQueriedTime = 0;
4490+ _octreeQuery.incrementConnectionID();
4491+
44844492 queryOctree(NodeType::EntityServer, PacketType::EntityQuery, _entityServerJurisdictions);
44854493
44864494 DependencyManager::get<AssetClient>()->clearCache();
@@ -5543,6 +5551,7 @@ void Application::nodeActivated(SharedNodePointer node) { · 1056 unmodified lines
55435551 // so we will do a proper query during update
55445552 if (node->getType() == NodeType::EntityServer) {
55455553 _lastQueriedTime = 0;
5554+ _octreeQuery.incrementConnectionID();
55465555 }
55475556
55485557 if (node->getType() == NodeType::AudioMixer) {
@@ -7082,6 +7091,7 @@ DisplayPluginPointer Application::getActiveDisplayPlugin() const { · 1533 unmodified lines
70827091 return _displayPlugin;
70837092 }
70847093
7094+static const char* EXCLUSION_GROUP_KEY = "exclusionGroup";
70857095
70867096 static void addDisplayPluginToMenu(DisplayPluginPointer displayPlugin, bool active = false) {
70877097 auto menu = Menu::getInstance();
@@ -7117,6 +7127,8 @@ static void addDisplayPluginToMenu(DisplayPluginPointer displayPlugin, bool acti · 29 unmodified lines
71177127 action->setCheckable(true);
71187128 action->setChecked(active);
71197129 displayPluginGroup->addAction(action);
7130+
7131+ action->setProperty(EXCLUSION_GROUP_KEY, QVariant::fromValue(displayPluginGroup));
71207132 Q_ASSERT(menu->menuItemExists(MenuOption::OutputMenu, name));
71217133 }
71227134

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t