splash screen to login page transititon

This commit is contained in:
danteruiz 2019-08-30 09:10:47 -07:00
parent 255c3e4334
commit 3f865a430b
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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 {