+void WaveformWidget::DrawPulse(QPainter * painter, QPen * pen, float lastx, float x, float y, float height/*= 1.0*/)
+{
+ float yHeight = y - (17.0 * height);
+ painter->setPen(*pen);
+ painter->drawLine(lastx, y, x, y);
+ painter->drawLine(x, y, x + 4.0, y);
+ painter->drawLine(x + 4.0, y, x + 4.0, yHeight);
+ painter->drawLine(x + 4.0, yHeight, x + 8.0, yHeight);
+ painter->drawLine(x + 8.0, yHeight, x + 8.0, y);
+}
+
+
+void WaveformWidget::DrawPulse(QPainter * painter, Qt::GlobalColor color, float lastx, float x, float y, float height/*= 1.0*/)
+{
+ QPen pen(color);
+ DrawPulse(painter, &pen, lastx, x, y, height);
+}
+
+