Merge pull request #1 from kvazar-network/inlude-qpainterpath

include missed QPainterPath dependency
This commit is contained in:
d47081 2024-03-29 01:18:31 +02:00 committed by GitHub
commit cfca9bc70b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@
#include <qt/clientmodel.h>
#include <QPainter>
#include <QPainterPath>
#include <QColor>
#include <QTimer>
@ -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));