fixing compile error

This commit is contained in:
Wayne Chen 2018-11-16 11:16:24 -08:00
parent 27f02c072a
commit a2a09bc2b9
4 changed files with 3 additions and 8 deletions

View file

@ -2331,8 +2331,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
DependencyManager::get<TabletScriptingInterface>()->preloadSounds();
DependencyManager::get<Keyboard>()->createKeyboard();
connect(DependencyManager::get<Keyboard>().data(), SIGNAL(keyboardRaisedChanged(bool)), this, SLOT(onKeyboardRaisedChanged(bool)));
_pendingIdleEvent = false;
_pendingRenderEvent = false;
@ -6698,7 +6696,7 @@ void Application::hmdVisibleChanged(bool visible) {
}
}
void Application::onKeyboardRaisedChanged(bool raised) {
void Application::keyboardRaisedChanged(bool raised) {
auto keyboard = DependencyManager::get<Keyboard>().data();
auto keyboardParentID = getOverlays().getProperty(keyboard->getAnchorID(), "parentID");
if (raised && !_loginDialogOverlayID.isNull()) {

View file

@ -392,7 +392,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); }

View file

@ -292,7 +292,7 @@ void Keyboard::setRaised(bool raised) {
_capsEnabled = false;
_typedCharacters.clear();
});
emit keyboardRaisedChanged(raised);
qApp->keyboardRaisedChanged(raised);
updateTextDisplay();
}

View file

@ -101,9 +101,6 @@ public:
QVector<OverlayID> 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);