10#include <QPainterPath>
17#define DESIRED_SAMPLES 800
63 if(
fMax <= 0.0f)
return;
71 int base = std::floor(std::log10(
fMax));
72 float val = std::pow(10.0f, base);
80 for(
float y = val; y <
fMax; y += val) {
85 if(
fMax / val <= 3.0f) {
87 val =
pow(10.0f, base - 1);
91 for(
float y = val; y <
fMax; y += val,
count++) {
100 painter.setRenderHint(QPainter::Antialiasing);
Model for Bitcoin network client.
interfaces::Node & node() const
virtual int64_t getTotalBytesRecv()=0
Get total bytes recv.
virtual int64_t getTotalBytesSent()=0
Get total bytes sent.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.