|
|
|
@ -6,6 +6,7 @@
@@ -6,6 +6,7 @@
|
|
|
|
|
#include <qt/clientmodel.h> |
|
|
|
|
|
|
|
|
|
#include <QPainter> |
|
|
|
|
#include <QPainterPath> |
|
|
|
|
#include <QColor> |
|
|
|
|
#include <QTimer> |
|
|
|
|
|
|
|
|
@ -79,7 +80,7 @@ void TrafficGraphWidget::paintEvent(QPaintEvent *)
@@ -79,7 +80,7 @@ void TrafficGraphWidget::paintEvent(QPaintEvent *)
|
|
|
|
|
|
|
|
|
|
const QString units = tr("KB/s"); |
|
|
|
|
const float yMarginText = 2.0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// draw lines
|
|
|
|
|
painter.setPen(axisCol); |
|
|
|
|
painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax-yMarginText, QString("%1 %2").arg(val).arg(units)); |
|
|
|
|