Graphic DateTime axisType improvements

This commit is contained in:
2022-11-23 18:40:44 +03:00
parent 99a5276573
commit 05356f9489
2 changed files with 105 additions and 31 deletions

View File

@@ -388,10 +388,10 @@ protected:
void setRectToLines();
void checkLines();
double splitRange(double range, int count = 1);
double splitRangeDate(double range, int count = 1, QString * format = 0, int step[7] = 0);
double splitRangeDate(double range, int count, const char *& up_format, const char *& lo_format, int step[7]);
double roundTo(double value, double round_to);
void roundDateTime(QDateTime & dt, int c[7]);
void addDateTime(QDateTime & dt, int c[7], int mul = 1);
void addDateTime(QDateTime & dt, int c[7], qint64 mul = 1);
QPointF absPoint(QPointF point) {return QPointF(qAbs(point.x()), qAbs(point.y()));}
QString pointCoords(QPointF point, bool x = true, bool y = true);
QPair<QString, QString> gridMark(double v) const;