summaryrefslogtreecommitdiff
path: root/src/statistics/StudiedPage.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
committerJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
commitd24f813f3f2a05c112e803e4256b53535895fc98 (patch)
tree601e6ae9a1cd44bcfdcf91739a5ca36aedd827c9 /src/statistics/StudiedPage.cpp
Initial mirror commitHEADmaster
Diffstat (limited to 'src/statistics/StudiedPage.cpp')
-rw-r--r--src/statistics/StudiedPage.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/statistics/StudiedPage.cpp b/src/statistics/StudiedPage.cpp
new file mode 100644
index 0000000..5dbe83b
--- /dev/null
+++ b/src/statistics/StudiedPage.cpp
@@ -0,0 +1,17 @@
+#include "StudiedPage.h"
+#include "../dictionary/CardPack.h"
+#include "../study/StudyRecord.h"
+
+StudiedPage::StudiedPage(const StatisticsParams* statParams):
+ TimeChartPage(statParams)
+{
+ init();
+}
+
+QList<QDateTime> StudiedPage::getDates(const CardPack* pack) const
+{
+ QList<QDateTime> res;
+ foreach(StudyRecord record, pack->getStudyRecords())
+ res << record.date;
+ return res;
+}