Changeset View
Changeset View
Standalone View
Standalone View
src/qt/trafficgraphwidget.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | if (fMax / val <= 3.0f) { | ||||
if (count % 10 == 0) { | if (count % 10 == 0) { | ||||
continue; | continue; | ||||
} | } | ||||
int yy = YMARGIN + h - h * y / fMax; | int yy = YMARGIN + h - h * y / fMax; | ||||
painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy); | painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy); | ||||
} | } | ||||
} | } | ||||
painter.setRenderHint(QPainter::Antialiasing); | |||||
if (!vSamplesIn.empty()) { | if (!vSamplesIn.empty()) { | ||||
QPainterPath p; | QPainterPath p; | ||||
paintPath(p, vSamplesIn); | paintPath(p, vSamplesIn); | ||||
painter.fillPath(p, QColor(0, 255, 0, 128)); | painter.fillPath(p, QColor(0, 255, 0, 128)); | ||||
painter.setPen(Qt::green); | painter.setPen(Qt::green); | ||||
painter.drawPath(p); | painter.drawPath(p); | ||||
} | } | ||||
if (!vSamplesOut.empty()) { | if (!vSamplesOut.empty()) { | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |