308 // ----------------------------------------------------------------------------- |
308 // ----------------------------------------------------------------------------- |
309 AboutDialog::AboutDialog (QWidget* parent, Qt::WindowFlags f) : |
309 AboutDialog::AboutDialog (QWidget* parent, Qt::WindowFlags f) : |
310 QDialog (parent, f) |
310 QDialog (parent, f) |
311 { Ui::AboutUI ui; |
311 { Ui::AboutUI ui; |
312 ui.setupUi (this); |
312 ui.setupUi (this); |
313 ui.versionInfo->setText (fmt (tr ("LDForge %1"), fullVersionString())); |
313 ui.versionInfo->setText (APPNAME " " + fullVersionString()); |
314 |
314 |
315 QPushButton* mailButton = new QPushButton; |
315 QPushButton* mailButton = new QPushButton; |
316 mailButton->setText ("Contact"); |
316 mailButton->setText (tr ("Contact")); |
317 mailButton->setIcon (getIcon ("mail")); |
317 mailButton->setIcon (getIcon ("mail")); |
318 ui.buttonBox->addButton (static_cast<QAbstractButton*> (mailButton), QDialogButtonBox::HelpRole); |
318 ui.buttonBox->addButton (static_cast<QAbstractButton*> (mailButton), QDialogButtonBox::HelpRole); |
319 connect (ui.buttonBox, SIGNAL (helpRequested()), this, SLOT (slot_mail())); |
319 connect (ui.buttonBox, SIGNAL (helpRequested()), this, SLOT (slot_mail())); |
320 |
320 |
321 setWindowTitle ("About " APPNAME); |
321 setWindowTitle (fmt (tr ("About %1"), APPNAME)); |
322 } |
322 } |
323 |
323 |
324 // ============================================================================= |
324 // ============================================================================= |
325 // ----------------------------------------------------------------------------- |
325 // ----------------------------------------------------------------------------- |
326 void AboutDialog::slot_mail() |
326 void AboutDialog::slot_mail() |