227 bool alignedToWeeks =
true;
230 for (
int i = 0;
i < ticks.size();
i++ )
236 static_cast<QwtDate::IntervalType>( j ) );
242 alignedToWeeks =
false;
The interval is related to weeks.
QwtDateScaleDraw(Qt::TimeSpec=Qt::LocalTime)
Constructor.
virtual QString dateFormatOfDate(const QDateTime &, QwtDate::IntervalType) const
The interval is related to years.
QDateTime toDateTime(double) const
The interval is related to months.
virtual QwtDate::IntervalType intervalType(const QwtScaleDiv &) const
virtual ~QwtDateScaleDraw()
Destructor.
QString dateFormat(QwtDate::IntervalType) const
static QDateTime floor(const QDateTime &, IntervalType)
A class representing a scale division.
QwtDate::Week0Type week0Type() const
void setUtcOffset(int seconds)
std::chrono::duration< std::int_fast64_t > seconds
The interval is related to minutes.
QwtDate::Week0Type week0Type
The interval is related to hours.
const QwtScaleDiv & scaleDiv() const
void setWeek0Type(QwtDate::Week0Type)
A class representing a text.
void setTimeSpec(Qt::TimeSpec)
void setDateFormat(QwtDate::IntervalType, const QString &)
The interval is related to milliseconds.
virtual QwtText label(double) const
Convert a value into its representing label.
Qt::TimeSpec timeSpec() const
static QDateTime toDateTime(double value, Qt::TimeSpec=Qt::UTC)
QString dateFormats[QwtDate::Year+1]
A collection of methods around date/time values.
static QString toString(const QDateTime &, const QString &format, Week0Type)
The interval is related to seconds.
QList< double > ticks(int tickType) const
PrivateData(Qt::TimeSpec spec)
The interval is related to days.