#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("" + tr("Learn new things quickly and keep your memory fresh with time spaced repetition.") + "
" + "" + Strings::tr(Strings::s_author) + "
" + "" + "" + "" + tr("License:") + " GPL 3" + "
" + ""; }