summaryrefslogtreecommitdiff
path: root/src/statistics/StudiedPage.cpp
blob: 5dbe83b73d0f4375406a7eb2b588c52ba34cdac5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}