diff options
author | Javier <dev.git@javispedro.com> | 2021-09-20 00:45:38 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2021-09-20 00:45:38 +0200 |
commit | d0e882e6b759ffe18a545cb8cce18ca402eac763 (patch) | |
tree | 2cf463f5cfa486982a47ae1fcae5ef0d54399da1 /paperreplaymodel.cc | |
parent | 8f5e61797d35ef376f9eb7af78731daec9a49091 (diff) | |
download | scribiu-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.cc | 4 |
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; |