added pic open dialog at ui

This commit is contained in:
Rafael 2016-03-26 10:46:25 +01:00
parent 4aa2fd844e
commit dfa0428cc2
9 changed files with 132 additions and 121 deletions

View file

@ -268,7 +268,14 @@ int main(int argc, char *argv[])
return a.exec();
}
UserInterface *uiWindow = new UserInterface();
CrewDatabase *crewDB = new CrewDatabase();
ProfileDatabase *profileDB = new ProfileDatabase();
DatabaseThread *threadDB = new DatabaseThread(crewDB);
QObject::connect(threadDB, SIGNAL(playerNameFound(int, QString)), profileDB, SLOT(setPlayerName(int, QString)));
threadDB->start();
UserInterface *uiWindow = new UserInterface(profileDB, crewDB);
uiWindow->show();
return a.exec();