From d24f813f3f2a05c112e803e4256b53535895fc98 Mon Sep 17 00:00:00 2001
From: Jedidiah Barber
Date: Wed, 14 Jul 2021 11:49:10 +1200
Subject: Initial mirror commit
---
src/main-view/AboutDialog.cpp | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 src/main-view/AboutDialog.cpp
(limited to 'src/main-view/AboutDialog.cpp')
diff --git a/src/main-view/AboutDialog.cpp b/src/main-view/AboutDialog.cpp
new file mode 100644
index 0000000..f1a7839
--- /dev/null
+++ b/src/main-view/AboutDialog.cpp
@@ -0,0 +1,27 @@
+#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" +
+ "
" + "";
+ }
--
cgit