mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-31 09:14:56 +00:00
Merge pull request #1 from kvazar-network/inlude-qpainterpath
include missed QPainterPath dependency
This commit is contained in:
commit
cfca9bc70b
@ -6,6 +6,7 @@
|
|||||||
#include <qt/clientmodel.h>
|
#include <qt/clientmodel.h>
|
||||||
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
#include <QPainterPath>
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
@ -79,7 +80,7 @@ void TrafficGraphWidget::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
const QString units = tr("KB/s");
|
const QString units = tr("KB/s");
|
||||||
const float yMarginText = 2.0;
|
const float yMarginText = 2.0;
|
||||||
|
|
||||||
// draw lines
|
// draw lines
|
||||||
painter.setPen(axisCol);
|
painter.setPen(axisCol);
|
||||||
painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax-yMarginText, QString("%1 %2").arg(val).arg(units));
|
painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax-yMarginText, QString("%1 %2").arg(val).arg(units));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user