# HG changeset patch # User Teemu Piippo # Date 1433692086 -10800 # Node ID 7dcfac8a9f178c7dfe9d592ec1846da1ebbd17eb # Parent 5e4bd3b212ce267c89829652176e4e9afe1db3ae Improved wording on the unknown version prompt, replaced the command link buttons with a more regular button box diff -r 5e4bd3b212ce -r 7dcfac8a9f17 launcher/prompts.cpp --- a/launcher/prompts.cpp Sun Jun 07 18:31:19 2015 +0300 +++ b/launcher/prompts.cpp Sun Jun 07 18:48:06 2015 +0300 @@ -44,11 +44,12 @@ // Replace the placeholders QString text = ui->m_description->text(); - text.replace ("", basename (fileName)); - text.replace ("", binaryName); + text.replace ("{{DEMO}}", basename (fileName)); + text.replace ("{{VERSION}}", binaryName); ui->m_description->setText (text); - connect (ui->m_addVersion, SIGNAL (clicked (bool)), this, SLOT (addBinary())); + connect (ui->buttonBox, SIGNAL (accepted()), this, SLOT (addBinary())); + connect (ui->buttonBox, SIGNAL (rejected()), this, SLOT (reject())); connect (ui->m_findBinary, SIGNAL (clicked (bool)), this, SLOT (findBinary())); setWindowTitle (versionSignature()); } diff -r 5e4bd3b212ce -r 7dcfac8a9f17 ui/unknownversion.ui --- a/ui/unknownversion.ui Sun Jun 07 18:31:19 2015 +0300 +++ b/ui/unknownversion.ui Sun Jun 07 18:48:06 2015 +0300 @@ -7,21 +7,21 @@ 0 0 400 - 246 + 159 Unknown Zandronum Version - + :/icons/zcinema.ico:/icons/zcinema.ico - The demo <DEMO> has been recorded with unknown version <VERSION>. You can add this to the list of known Zandronum versions and specify a binary for it here. + <html><head/><body><p>The demo {{DEMO}} has been recorded with Zandronum {{VERSION}}, which is unknown to ZCinema. You must provide an executable path in order to launch this demo.</p></body></html> true @@ -61,50 +61,14 @@ - - - Qt::Horizontal - - - - - - - Add Zandronum version and launch the demo - - - - - - - Cancel and exit - - - + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - m_cancel - clicked() - UnknownVersion - reject() - - - 118 - 210 - - - 394 - 73 - - - - + +