AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent) { setupUi(this); setWindowTitle(tr("About") + QLatin1String(" ") + qApp->applicationName()); logo->setPixmap(qApp->windowIcon().pixmap(128, 128)); name->setText(qApp->applicationName()); version->setText(QApplication::applicationVersion()); connect(authorsButton, SIGNAL(clicked()), this, SLOT(authorsButtonClicked())); connect(licenseButton, SIGNAL(clicked()), this, SLOT(licenseButtonClicked())); }
AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent) { setupUi(this); setWindowTitle(tr("About %1").arg(qApp->applicationName())); logo->setPixmap(qApp->windowIcon().pixmap(128, 128)); name->setText((tr("%1").arg(qApp->applicationName()))+tr(" ")+tr("%1").arg(qApp->applicationVersion())); #if QT_VERSION >= 0x040600 || defined(WEBKIT_TRUNK) webkitVersion->setText(tr("WebKit version: %1").arg(qWebKitVersion())); #else webkitVersion->hide(); #endif connect(authorsButton, SIGNAL(clicked()), this, SLOT(authorsButtonClicked())); connect(contributorsButton, SIGNAL(clicked()), this, SLOT(contributorsButtonClicked())); connect(licenseButton, SIGNAL(clicked()), this, SLOT(licenseButtonClicked())); }