10#include <QPainterPath>
17#define DESIRED_SAMPLES 800
61 if(
fMax <= 0.0f)
return;
69 int base = std::floor(std::log10(
fMax));
70 float val = std::pow(10.0f, base);
78 for(
float y = val; y <
fMax; y += val) {
83 if(
fMax / val <= 3.0f) {
85 val =
pow(10.0f, base - 1);
89 for(
float y = val; y <
fMax; y += val,
count++) {
98 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.