mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
splash screen to login page transititon
This commit is contained in:
parent
255c3e4334
commit
3f865a430b
2 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,7 @@ Launcher::Launcher(int& argc, char**argv) : QGuiApplication(argc, argv) {
|
|||
QString resourceBinaryLocation = QGuiApplication::applicationDirPath() + "/resources.rcc";
|
||||
QResource::registerResource(resourceBinaryLocation);
|
||||
_launcherState = std::make_shared<LauncherState>();
|
||||
_launcherState->setUIState(LauncherState::LOGIN_SCREEN);
|
||||
_launcherState->setUIState(LauncherState::SPLASH_SCREEN);
|
||||
_launcherWindow = std::make_unique<LauncherWindow>();
|
||||
_launcherWindow->rootContext()->setContextProperty("LauncherState", _launcherState.get());
|
||||
_launcherWindow->setFlags(Qt::FramelessWindowHint);
|
||||
|
|
|
@ -61,6 +61,7 @@ LauncherState::LauncherState() {
|
|||
}
|
||||
}
|
||||
}
|
||||
setUIState(LauncherState::LOGIN_SCREEN);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -74,6 +75,7 @@ void LauncherState::declareQML() {
|
|||
|
||||
void LauncherState::setUIState(UIState state) {
|
||||
_uiState = state;
|
||||
emit updateSourceUrl(getCurrentUISource());
|
||||
}
|
||||
|
||||
LauncherState::UIState LauncherState::getUIState() const {
|
||||
|
|
Loading…
Reference in a new issue