mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
AboutDialog: Remove authors/contributors page
The list of names is really outdated and doesn't reflect current state anymore.
This commit is contained in:
parent
39f78ad402
commit
0890ac33bd
@ -28,112 +28,35 @@
|
|||||||
AboutDialog::AboutDialog(QWidget* parent)
|
AboutDialog::AboutDialog(QWidget* parent)
|
||||||
: QDialog(parent)
|
: QDialog(parent)
|
||||||
, ui(new Ui::AboutDialog)
|
, ui(new Ui::AboutDialog)
|
||||||
, m_showingAuthors(false)
|
|
||||||
{
|
{
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->label->setPixmap(QIcon(QSL(":icons/other/about.png")).pixmap(300, 130));
|
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();
|
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 += "<center><div style='margin:20px;'>";
|
|
||||||
m_aboutHtml += tr("<p><b>Application version %1</b><br/>").arg(
|
|
||||||
#ifdef FALKON_GIT_REVISION
|
|
||||||
QString("%1 (%2)").arg(Qz::VERSION, FALKON_GIT_REVISION)
|
|
||||||
#else
|
|
||||||
Qz::VERSION
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
m_aboutHtml += tr("<b>QtWebEngine version %1</b></p>").arg(qVersion());
|
|
||||||
m_aboutHtml += QString("<p>© %1 %2<br/>").arg(Qz::COPYRIGHT, Qz::AUTHOR);
|
|
||||||
m_aboutHtml += QString("<a href=%1>%1</a></p>").arg(Qz::WWWADDRESS);
|
|
||||||
m_aboutHtml += "<p>" + mApp->userAgentManager()->defaultUserAgent() + "</p>";
|
|
||||||
m_aboutHtml += "</div></center>";
|
|
||||||
}
|
|
||||||
ui->textBrowser->setHtml(m_aboutHtml);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AboutDialog::showAuthors()
|
|
||||||
{
|
|
||||||
m_showingAuthors = true;
|
|
||||||
ui->authorsButton->setText(tr("< About Falkon"));
|
|
||||||
if (m_authorsHtml.isEmpty()) {
|
|
||||||
m_authorsHtml += "<center><div style='margin:10px;'>";
|
|
||||||
m_authorsHtml += tr("<p><b>Main developer:</b><br/>%1 <%2></p>").arg(Qz::AUTHOR, "<a href=mailto:nowrep@gmail.com>nowrep@gmail.com</a>");
|
|
||||||
m_authorsHtml += tr("<p><b>Contributors:</b><br/>%1</p>").arg(
|
|
||||||
QString::fromUtf8("Mladen Pejaković<br/>"
|
|
||||||
"Seyyed Razi Alavizadeh<br/>"
|
|
||||||
"Adrien Vigneron<br/>"
|
|
||||||
"Elio Qoshi<br/>"
|
|
||||||
"Alexander Samilov<br/>"
|
|
||||||
"Franz Fellner<br/>"
|
|
||||||
"Bryan M Dunsmore<br/>"
|
|
||||||
"Mariusz Fik<br/>"
|
|
||||||
"Daniele Cocca")
|
|
||||||
);
|
|
||||||
|
|
||||||
m_authorsHtml += tr("<p><b>Translators:</b><br/>%1</p>").arg(
|
|
||||||
QString::fromUtf8("Heimen Stoffels<br/>"
|
|
||||||
"Peter Vacula<br/>"
|
|
||||||
"Jonathan Hooverman<br/>"
|
|
||||||
"Federico Fabiani<br/>"
|
|
||||||
"Francesco Marinucci<br/>"
|
|
||||||
"Jorge Sevilla<br/>"
|
|
||||||
"Ștefan Comănescu<br/>"
|
|
||||||
"Michał Szymanowski<br/>"
|
|
||||||
"Mariusz Fik<br/>"
|
|
||||||
"Jérôme Giry<br/>"
|
|
||||||
"Nicolas Ourceau<br/>"
|
|
||||||
"Vasilis Tsivikis<br/>"
|
|
||||||
"Rustam Salakhutdinov<br/>"
|
|
||||||
"Oleg Brezhnev<br/>"
|
|
||||||
"Sérgio Marques<br/>"
|
|
||||||
"Alexandre Carvalho<br/>"
|
|
||||||
"Mladen Pejaković<br/>"
|
|
||||||
"Unink-Lio<br/>"
|
|
||||||
"Wu Cheng-Hong<br/>"
|
|
||||||
"Widya Walesa<br/>"
|
|
||||||
"Beqa Arabuli<br/>"
|
|
||||||
"Daiki Noda<br/>"
|
|
||||||
"Gábor Oberle<br/>"
|
|
||||||
"Piccoro McKay Lenz<br/>"
|
|
||||||
"Stanislav Kuznietsov<br/>"
|
|
||||||
"Seyyed Razi Alavizadeh<br/>"
|
|
||||||
"Guillem Prats<br/>"
|
|
||||||
"Clara Villalba<br/>"
|
|
||||||
"Yu Hai<br/>"
|
|
||||||
"Muhammad Fawwaz Orabi<br/>"
|
|
||||||
"Lasso Kante<br/>"
|
|
||||||
"Kizito Birabwa<br/>"
|
|
||||||
"Juan Carlos Sánchez<br/>"
|
|
||||||
"Xabier Aramendi<br/>"
|
|
||||||
"Ferhat AYDIN")
|
|
||||||
);
|
|
||||||
m_authorsHtml += "</div></center>";
|
|
||||||
}
|
|
||||||
|
|
||||||
ui->textBrowser->setHtml(m_authorsHtml);
|
|
||||||
}
|
|
||||||
|
|
||||||
AboutDialog::~AboutDialog()
|
AboutDialog::~AboutDialog()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AboutDialog::showAbout()
|
||||||
|
{
|
||||||
|
QString aboutHtml;
|
||||||
|
aboutHtml += "<center><div style='margin:20px;'>";
|
||||||
|
aboutHtml += tr("<p><b>Application version %1</b><br/>").arg(
|
||||||
|
#ifdef FALKON_GIT_REVISION
|
||||||
|
QString("%1 (%2)").arg(Qz::VERSION, FALKON_GIT_REVISION)
|
||||||
|
#else
|
||||||
|
Qz::VERSION
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
aboutHtml += tr("<b>QtWebEngine version %1</b></p>").arg(qVersion());
|
||||||
|
aboutHtml += QString("<p>© %1 %2<br/>").arg(Qz::COPYRIGHT, Qz::AUTHOR);
|
||||||
|
aboutHtml += QString("<a href=%1>%1</a></p>").arg(Qz::WWWADDRESS);
|
||||||
|
aboutHtml += "<p>" + mApp->userAgentManager()->defaultUserAgent() + "</p>";
|
||||||
|
aboutHtml += "</div></center>";
|
||||||
|
ui->textBrowser->setHtml(aboutHtml);
|
||||||
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
* Falkon - Qt web browser
|
* Falkon - Qt web browser
|
||||||
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
|
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -37,15 +37,11 @@ public:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void showAbout();
|
void showAbout();
|
||||||
void showAuthors();
|
|
||||||
void buttonClicked();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::AboutDialog* ui;
|
Ui::AboutDialog* ui;
|
||||||
|
|
||||||
QString m_aboutHtml;
|
QString m_aboutHtml;
|
||||||
QString m_authorsHtml;
|
|
||||||
bool m_showingAuthors;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ABOUTDIALOG_H
|
#endif // ABOUTDIALOG_H
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>446</width>
|
<width>440</width>
|
||||||
<height>382</height>
|
<height>350</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -48,19 +48,6 @@
|
|||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>5</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="authorsButton">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Authors</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
Loading…
Reference in New Issue
Block a user