diff --git a/src/lib/other/aboutdialog.cpp b/src/lib/other/aboutdialog.cpp index e00bacf02..67951082d 100644 --- a/src/lib/other/aboutdialog.cpp +++ b/src/lib/other/aboutdialog.cpp @@ -28,112 +28,35 @@ AboutDialog::AboutDialog(QWidget* parent) : QDialog(parent) , ui(new Ui::AboutDialog) - , m_showingAuthors(false) { setAttribute(Qt::WA_DeleteOnClose); ui->setupUi(this); ui->label->setPixmap(QIcon(QSL(":icons/other/about.png")).pixmap(300, 130)); - connect(ui->buttonBox, SIGNAL(clicked(QAbstractButton*)), this, SLOT(close())); - connect(ui->authorsButton, SIGNAL(clicked()), this, SLOT(buttonClicked())); - showAbout(); } -void AboutDialog::buttonClicked() -{ - if (m_showingAuthors) - showAbout(); - else - showAuthors(); -} - -void AboutDialog::showAbout() -{ - m_showingAuthors = false; - ui->authorsButton->setText(tr("Authors and Contributors")); - if (m_aboutHtml.isEmpty()) { - m_aboutHtml += "
Application version %1
").arg(
-#ifdef FALKON_GIT_REVISION
- QString("%1 (%2)").arg(Qz::VERSION, FALKON_GIT_REVISION)
-#else
- Qz::VERSION
-#endif
- );
- m_aboutHtml += tr("QtWebEngine version %1
© %1 %2
").arg(Qz::COPYRIGHT, Qz::AUTHOR);
- m_aboutHtml += QString("%1
" + mApp->userAgentManager()->defaultUserAgent() + "
"; - m_aboutHtml += "Main developer:
%1 <%2>
Contributors:
%1
Translators:
%1
Application version %1
").arg(
+#ifdef FALKON_GIT_REVISION
+ QString("%1 (%2)").arg(Qz::VERSION, FALKON_GIT_REVISION)
+#else
+ Qz::VERSION
+#endif
+ );
+ aboutHtml += tr("QtWebEngine version %1
© %1 %2
").arg(Qz::COPYRIGHT, Qz::AUTHOR);
+ aboutHtml += QString("%1
" + mApp->userAgentManager()->defaultUserAgent() + "
"; + aboutHtml += "