#include "AboutDialog.h" #include "../strings.h" #include "../version.h" AboutDialog::AboutDialog(QWidget* parent): QMessageBox(parent) { setIconPixmap(QPixmap(":/images/freshmemory.png")); setWindowTitle(tr("About %1").arg( Strings::tr(Strings::s_appTitle))); setText(createAboutText()); setEscapeButton(addButton(QMessageBox::Ok)); } QString AboutDialog::createAboutText() { QString formattedBuildStr; if( !BuildStr.isEmpty() ) formattedBuildStr = "

" + BuildStr + "

"; return QString("

") + Strings::tr(Strings::s_appTitle) + " " + FM_VERSION + "

" + formattedBuildStr + "

" + tr("Learn new things quickly and keep your memory fresh with time spaced repetition.") + "

" + "

" + Strings::tr(Strings::s_author) + "

" + "

fresh-memory.com

" + "

" + "

" + tr("License:") + " GPL 3" + "

" + "

"; }