Changeset View
Changeset View
Standalone View
Standalone View
src/models/learningprogressmodel.cpp
Context not available. | |||||
186 | } | 186 | } | ||
---|---|---|---|---|---|
187 | } | 187 | } | ||
188 | 188 | | |||
189 | QDateTime LearningProgressModel::date(int row) const | ||||
190 | { | ||||
191 | LearningProgressModel* model = const_cast<LearningProgressModel*>(this); | ||||
192 | QSqlRecord record = model->record(row); | ||||
193 | return QDateTime::fromMSecsSinceEpoch(record.value(0).value<quint64>()); | ||||
194 | } | ||||
195 | | ||||
189 | int LearningProgressModel::charactersPerMinute(int row) const | 196 | int LearningProgressModel::charactersPerMinute(int row) const | ||
190 | { | 197 | { | ||
191 | const int charactersTyped = this->charactersTyped(row); | 198 | const int charactersTyped = this->charactersTyped(row); | ||
Context not available. |