Skip to content

Commit

Permalink
About dialog updated and improved (fixes #23).
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed Dec 21, 2017
1 parent 7f1af44 commit 3db2c1c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,22 @@ MainWindow::~MainWindow()

void MainWindow::about()
{
QMessageBox::about(this, QString(tr("About %1")).arg(QCoreApplication::applicationName()), QString(tr("<h2>%1 %2</h2>" "<p>Copyright piorekf<br><a href=\"http://piorekf.org/plug/\">piorekf.org/plug</a></p>" "<p>%1 is a GPLv3 licensed program designed as a replacement for Fender FUSE to operate Fender Mustang amplifier and possibly some other models</p>")).arg(QCoreApplication::applicationName()).arg(QCoreApplication::applicationVersion()));
const QString title{tr("About %1").arg(QCoreApplication::applicationName())};
const QString text{tr("<center>"
"<h2>%1</h2>"
"<i>v%2</i>"
"<p>%1 is a GPLv3 licensed program designed as a replacement for Fender FUSE to operate Fender Mustang amplifier and possibly some other models.</p>"
"<p><a href=\"https://github.com/offa/plug/\">Plug (GitHub)</a> / <a href=\"https://gitlab.com/offa/plug/\">Plug (GitLab)</a></p>"
"<p><a href=\"http://piorekf.org/plug/\">piorekf.org/plug</a></p>"
"<hr>"
"<p>Copyright © 2017 offa</p>"
"<p>Copyright © 2010-2016 piorekf <[email protected]></p>"
"<p>License: <a href=\"http://www.gnu.org/licenses/gpl.txt\">GPLv3</a></p>"
"</center>"
).arg(QCoreApplication::applicationName(),
QCoreApplication::applicationVersion())};

QMessageBox::about(this, title, text);
}


Expand Down

0 comments on commit 3db2c1c

Please sign in to comment.