21 #include <QUrl> |
21 #include <QUrl> |
22 #include "aboutDialog.h" |
22 #include "aboutDialog.h" |
23 #include "ui_about.h" |
23 #include "ui_about.h" |
24 #include "gui.h" |
24 #include "gui.h" |
25 |
25 |
26 AboutDialog::AboutDialog( QWidget* parent, Qt::WindowFlags f ) : QDialog( parent, f ) |
26 AboutDialog::AboutDialog (QWidget* parent, Qt::WindowFlags f) : |
27 { |
27 QDialog (parent, f) { |
|
28 |
28 Ui::AboutUI ui; |
29 Ui::AboutUI ui; |
29 ui.setupUi( this ); |
30 ui.setupUi (this); |
30 |
31 ui.versionInfo->setText (fmt (tr ("LDForge %1"), fullVersionString())); |
31 ui.versionInfo->setText( fmt( tr( "LDForge %1" ), fullVersionString() )); |
|
32 |
32 |
33 QPushButton* mailButton = new QPushButton; |
33 QPushButton* mailButton = new QPushButton; |
34 mailButton->setText( "Contact" ); |
34 mailButton->setText ("Contact"); |
35 mailButton->setIcon( getIcon( "mail" )); |
35 mailButton->setIcon (getIcon ("mail")); |
36 ui.buttonBox->addButton( static_cast<QAbstractButton*>( mailButton ), QDialogButtonBox::HelpRole ); |
36 ui.buttonBox->addButton (static_cast<QAbstractButton*> (mailButton), QDialogButtonBox::HelpRole); |
37 connect( ui.buttonBox, SIGNAL( helpRequested() ), this, SLOT( slot_mail() )); |
37 connect (ui.buttonBox, SIGNAL (helpRequested()), this, SLOT (slot_mail())); |
38 |
38 |
39 setWindowTitle( "About " APPNAME ); |
39 setWindowTitle ("About " APPNAME); |
40 } |
40 } |
41 |
41 |
42 void AboutDialog::slot_mail() |
42 void AboutDialog::slot_mail() { |
43 { |
43 QDesktopServices::openUrl (QUrl ("mailto:Santeri Piippo <arezey@gmail.com>?subject=LDForge")); |
44 QDesktopServices::openUrl( QUrl( "mailto:Santeri Piippo <arezey@gmail.com>?subject=LDForge" )); |
|
45 } |
44 } |
46 |
45 |
47 #include "build/moc_aboutDialog.cpp" |
46 #include "build/moc_aboutDialog.cpp" |