launcher/prompts.cpp

changeset 52
7dcfac8a9f17
parent 46
07578e081ae8
child 66
c68545f1aecb
equal deleted inserted replaced
51:5e4bd3b212ce 52:7dcfac8a9f17
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 //

mercurial