2
0
forked from Ivasoft/DSView

Enhance serial trigger @ LA mode

This commit is contained in:
DreamSourceLab
2016-04-10 08:18:25 +08:00
parent a5ead17590
commit f3138d93c2
6 changed files with 61 additions and 15 deletions

View File

@@ -165,6 +165,8 @@ void Viewport::paintEvent(QPaintEvent *event)
if (_view.get_signalHeight() != _curSignalHeight)
_curSignalHeight = _view.get_signalHeight();
paintTrigTime(p);
p.end();
}
@@ -813,8 +815,7 @@ void Viewport::measure()
}
}
}
if (_measure_type != NO_MEASURE)
measure_updated();
measure_updated();
}
void Viewport::paintMeasure(QPainter &p)
@@ -1169,5 +1170,14 @@ void Viewport::on_drag_timer()
}
}
void Viewport::paintTrigTime(QPainter &p)
{
if (_view.session().get_device()->dev_inst()->mode == LOGIC) {
p.setPen(Trace::dsBack);
p.drawText(this->rect(), Qt::AlignRight | Qt::AlignBottom,
"Last Trigger Time: "+_view.trigger_time());
}
}
} // namespace view
} // namespace pv