mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
removing unused classes
This commit is contained in:
parent
2dd20de1bd
commit
9deeee6534
4 changed files with 30 additions and 55 deletions
|
@ -200,6 +200,16 @@ Item {
|
|||
event.accepted = true;
|
||||
passwordField.focus = true;
|
||||
break;
|
||||
case Qt.Key_Enter:
|
||||
case Qt.Key_Return:
|
||||
event.accepted = true;
|
||||
if (loginDialog.isLogIn) {
|
||||
Settings.setValue("keepMeLoggedIn/savedUsername", emailField.text);
|
||||
} else {
|
||||
Settings.setValue("keepMeLoggedIn/savedUsername", usernameField.text);
|
||||
}
|
||||
signInBody.login();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -233,6 +243,16 @@ Item {
|
|||
event.accepted = true;
|
||||
usernameField.focus = true;
|
||||
break;
|
||||
case Qt.Key_Enter:
|
||||
case Qt.Key_Return:
|
||||
event.accepted = true;
|
||||
if (loginDialog.isLogIn) {
|
||||
Settings.setValue("keepMeLoggedIn/savedUsername", emailField.text);
|
||||
} else {
|
||||
Settings.setValue("keepMeLoggedIn/savedUsername", usernameField.text);
|
||||
}
|
||||
signInBody.login();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -305,6 +325,16 @@ Item {
|
|||
event.accepted = true;
|
||||
emailField.focus = true;
|
||||
break;
|
||||
case Qt.Key_Enter:
|
||||
case Qt.Key_Return:
|
||||
event.accepted = true;
|
||||
if (loginDialog.isLogIn) {
|
||||
Settings.setValue("keepMeLoggedIn/savedUsername", emailField.text);
|
||||
} else {
|
||||
Settings.setValue("keepMeLoggedIn/savedUsername", usernameField.text);
|
||||
}
|
||||
signInBody.login();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1287,7 +1287,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
|||
setCrashAnnotation("hmd", displayPlugin->isHmd() ? "1" : "0");
|
||||
});
|
||||
connect(this, &Application::activeDisplayPluginChanged, this, &Application::updateSystemTabletMode);
|
||||
connect(this, &Application::activeDisplayPluginChanged, this, &Application::checkReadyToCreateLoginDialogOverlay);
|
||||
|
||||
// Save avatar location immediately after a teleport.
|
||||
connect(myAvatar.get(), &MyAvatar::positionGoneTo,
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
//
|
||||
// LoginScreenDialog.cpp
|
||||
// interface/src/ui
|
||||
//
|
||||
// Created by Wayne Chen on 2018/10/9
|
||||
// Copyright 2018 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
#include "LoginScreenDialog.h"
|
||||
|
||||
#include <PathUtils.h>
|
||||
|
||||
#include "ui/overlays/Overlays.h"
|
||||
#include "ui/overlays/Overlay.h"
|
||||
#include "avatar/AvatarManager.h"
|
||||
#include "avatar/MyAvatar.h"
|
||||
#include "DependencyManager.h"
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
void LoginScreenDialog::createLoginScreen() {
|
||||
Overlays& overlays = qApp->getOverlays();
|
||||
|
||||
//QVariantMap loginScreenOverlayProperties {
|
||||
// { "url", }
|
||||
//}
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
//
|
||||
// LoginScreenDialog.h
|
||||
// interface/src/ui
|
||||
//
|
||||
// Created by Wayne Chen on 2018/10/9
|
||||
// Copyright 2018 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
#ifndef hifi_LoginScreenDialog_h
|
||||
#define hifi_LoginScreenDialog_h
|
||||
|
||||
#include <DependencyManager.h>
|
||||
|
||||
class PointerEvent;
|
||||
|
||||
class LoginScreenDialog : public Dependency, QObject {
|
||||
LoginScreenDialog();
|
||||
void createLoginScreen();
|
||||
|
||||
public slots:
|
||||
};
|
||||
|
||||
#endif // hifi_LoginScreenDialog_h
|
Loading…
Reference in a new issue