diff options
Diffstat (limited to 'stfstrokeitem.cc')
-rw-r--r-- | stfstrokeitem.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stfstrokeitem.cc b/stfstrokeitem.cc index 335e166..8fce6b7 100644 --- a/stfstrokeitem.cc +++ b/stfstrokeitem.cc @@ -51,9 +51,11 @@ void StfStrokeItem::mousePressEvent(QGraphicsSceneMouseEvent *event) if (event->button() == Qt::LeftButton && hasPaperReplay()) { QGraphicsView *view = scene()->views().first(); if (NotebookView *nbview = qobject_cast<NotebookView*>(view)) { - qint64 time = _startTime - _session.startTime(); + PaperReplay::PenTime time = _startTime - _session.startTime(); if (time < 10) time = 0; + qDebug() << "requesting paper replay at time" << time << "/" << (_session.endTime() - _session.startTime()); + nbview->requestPaperReplay(_session.fileName(), time); event->accept(); return; |