cosmetics for about

parent 70f34351
...@@ -339,27 +339,35 @@ MainWindow::~MainWindow() ...@@ -339,27 +339,35 @@ MainWindow::~MainWindow()
void MainWindow::slotHelpAbout() void MainWindow::slotHelpAbout()
{ {
Debug::Messages("About jpsvis");
QString version = QString("Version: %1\n").arg(JPSVIS_VERSION); Debug::Messages("About JPSvis");
QString compiler = QString("Compiler: %1 (%2)\n").arg(true_cxx1.c_str()).arg(true_cxx_ver1.c_str()); QString gittext = QMessageBox::tr(
QString commHash = QString("Commit hash: %1\n").arg(GIT_COMMIT_HASH); "<h1><p style=\"line-height:0.7\">JPSvis</p></h1><p style=\"line-height:1.4\" style=\"color:Gray;\"><small><i>Version %1</i></small></p>"
QString commDate = QString("Commit date: %1\n").arg(GIT_COMMIT_DATE); "<p style=\"line-height:0.4\" style=\"color:Gray;\"><i>CommHash</i> %2</p>"
QString branch = QString("Branch: %1\n").arg(GIT_BRANCH); "<p style=\"line-height:0.4\" style=\"color:Gray;\"><i>CommDate</i> %3</p>"
"<p style=\"line-height:0.4\" style=\"color:Gray;\"><i>Branch</i> %4</p><hr>"
QFont serifFont("Times", 10, QFont::Bold); ).arg(JPSVIS_VERSION).arg(GIT_COMMIT_HASH).arg(GIT_COMMIT_DATE).arg(GIT_BRANCH);
QMessageBox::about(
this, QString text = QMessageBox::tr(
"About JPSvis", "<p style=\"color:Gray;\"><small><i> &copy; 2009-2019 Ulrich Kemloh <br><a href=\"http://jupedsim.org\">jupedsim.org</a></i></small></p>"
+"JuPedSim - JPSvis\n\n"
+version
+commHash
+commDate
+branch
+compiler
+"Issue tracker: https://gitlab.version.fz-juelich.de/jupedsim/jpsvis/issues \n\n"
+"Copyright 2009-2018.\n"
"Author: Ulrich Kemloh\n\n"
); );
QMessageBox msg(QMessageBox::Information,"About JPSvis", gittext+text, QMessageBox::Ok);
msg.setIconPixmap(QPixmap("../forms/icons/JPSvis.icns"));
//Change font
QFont font( "Tokyo" );
font.setPointSize( 10 );
// font.setWeight( QFont::Bold );
//font.setItalic( TRUE );
msg.setFont(font);
msg.setStandardButtons(0);
msg.exec();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment