diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index dbccc081e5..6c62d2c2cb 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2345,8 +2345,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo DependencyManager::get()->preloadSounds(); DependencyManager::get()->createKeyboard(); - connect(DependencyManager::get().data(), SIGNAL(keyboardRaisedChanged(bool)), this, SLOT(onKeyboardRaisedChanged(bool))); - _pendingIdleEvent = false; _pendingRenderEvent = false; @@ -6724,7 +6722,7 @@ void Application::hmdVisibleChanged(bool visible) { } } -void Application::onKeyboardRaisedChanged(bool raised) { +void Application::keyboardRaisedChanged(bool raised) { auto keyboard = DependencyManager::get().data(); auto keyboardParentID = getOverlays().getProperty(keyboard->getAnchorID(), "parentID"); if (raised && !_loginDialogOverlayID.isNull()) { diff --git a/interface/src/Application.h b/interface/src/Application.h index e2547ccd60..425f3b450a 100644 --- a/interface/src/Application.h +++ b/interface/src/Application.h @@ -393,7 +393,7 @@ public slots: void hmdVisibleChanged(bool visible); - void onKeyboardRaisedChanged(bool raised); + void keyboardRaisedChanged(bool raised); #if (PR_BUILD || DEV_BUILD) void sendWrongProtocolVersionsSignature(bool checked) { ::sendWrongProtocolVersionsSignature(checked); } diff --git a/interface/src/ui/Keyboard.cpp b/interface/src/ui/Keyboard.cpp index 2531374d83..7dfa232f6e 100644 --- a/interface/src/ui/Keyboard.cpp +++ b/interface/src/ui/Keyboard.cpp @@ -292,7 +292,7 @@ void Keyboard::setRaised(bool raised) { _capsEnabled = false; _typedCharacters.clear(); }); - emit keyboardRaisedChanged(raised); + qApp->keyboardRaisedChanged(raised); updateTextDisplay(); } diff --git a/interface/src/ui/Keyboard.h b/interface/src/ui/Keyboard.h index 9cb4a662c3..b8e7346689 100644 --- a/interface/src/ui/Keyboard.h +++ b/interface/src/ui/Keyboard.h @@ -101,9 +101,6 @@ public: QVector getKeysID(); OverlayID getAnchorID(); -signals: - void keyboardRaisedChanged(bool raised); - public slots: void handleTriggerBegin(const OverlayID& overlayID, const PointerEvent& event); void handleTriggerEnd(const OverlayID& overlayID, const PointerEvent& event);