42 ui = new Ui_UnknownVersion; |
42 ui = new Ui_UnknownVersion; |
43 ui->setupUi (this); |
43 ui->setupUi (this); |
44 |
44 |
45 // Replace the placeholders |
45 // Replace the placeholders |
46 QString text = ui->m_description->text(); |
46 QString text = ui->m_description->text(); |
47 text.replace ("<DEMO>", basename (fileName)); |
47 text.replace ("{{DEMO}}", basename (fileName)); |
48 text.replace ("<VERSION>", binaryName); |
48 text.replace ("{{VERSION}}", binaryName); |
49 ui->m_description->setText (text); |
49 ui->m_description->setText (text); |
50 |
50 |
51 connect (ui->m_addVersion, SIGNAL (clicked (bool)), this, SLOT (addBinary())); |
51 connect (ui->buttonBox, SIGNAL (accepted()), this, SLOT (addBinary())); |
|
52 connect (ui->buttonBox, SIGNAL (rejected()), this, SLOT (reject())); |
52 connect (ui->m_findBinary, SIGNAL (clicked (bool)), this, SLOT (findBinary())); |
53 connect (ui->m_findBinary, SIGNAL (clicked (bool)), this, SLOT (findBinary())); |
53 setWindowTitle (versionSignature()); |
54 setWindowTitle (versionSignature()); |
54 } |
55 } |
55 |
56 |
56 // |
57 // |