added pic open dialog at ui
This commit is contained in:
parent
4aa2fd844e
commit
dfa0428cc2
9 changed files with 132 additions and 121 deletions
9
main.cpp
9
main.cpp
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue