aboutsummaryrefslogtreecommitdiff
path: root/paperreplaymodel.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2021-09-20 00:45:38 +0200
committerJavier <dev.git@javispedro.com>2021-09-20 00:45:38 +0200
commitd0e882e6b759ffe18a545cb8cce18ca402eac763 (patch)
tree2cf463f5cfa486982a47ae1fcae5ef0d54399da1 /paperreplaymodel.cc
parent8f5e61797d35ef376f9eb7af78731daec9a49091 (diff)
downloadscribiu-d0e882e6b759ffe18a545cb8cce18ca402eac763.tar.gz
scribiu-d0e882e6b759ffe18a545cb8cce18ca402eac763.zip
use stf speed to compute time between stroke points in txyf export
Diffstat (limited to 'paperreplaymodel.cc')
-rw-r--r--paperreplaymodel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paperreplaymodel.cc b/paperreplaymodel.cc
index 4c40f76..dcab5cf 100644
--- a/paperreplaymodel.cc
+++ b/paperreplaymodel.cc
@@ -98,7 +98,7 @@ void PaperReplayModel::refresh()
{
beginResetModel();
_sessions = _replay->sessions();
- std::sort(_sessions.begin(), _sessions.end(), PaperReplay::Session::startTimeLess);
+ std::sort(_sessions.begin(), _sessions.end(), PaperReplay::Session::compareByStartTime);
endResetModel();
}
@@ -116,7 +116,7 @@ QString PaperReplayModel::getSessionName(const PaperReplay::Session &session) co
QString PaperReplayModel::getSessionLength(const PaperReplay::Session &session) const
{
- qint64 msecs = session.endTime() - session.startTime();
+ quint64 msecs = session.duration();
uint secs = msecs / 1000;
uint mins = secs / 60;
secs %= 60;