added name updating while window open
This commit is contained in:
parent
49d29aa3ec
commit
4334537966
5 changed files with 41 additions and 7 deletions
3
main.cpp
3
main.cpp
|
@ -71,9 +71,12 @@ int main(int argc, char *argv[])
|
|||
bool readOk = picture.readingPictureFromFile(arg1);
|
||||
picDialog->setWindowFlags(picDialog->windowFlags()^Qt::WindowContextHelpButtonHint);
|
||||
picDialog->setSnapmaticPicture(&picture, readOk);
|
||||
|
||||
int crewID = picture.getCrewNumber();
|
||||
if (crewID != 0) { crewDB->addCrew(crewID); }
|
||||
if (!readOk) { return 1; }
|
||||
|
||||
QObject::connect(threadDB, SIGNAL(playerNameUpdated()), picDialog, SLOT(on_playerNameUpdated()));
|
||||
picDialog->show();
|
||||
|
||||
return a.exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue