228 bool alignedToWeeks =
true;
231 for (
int i = 0; i < ticks.size(); i++ )
237 static_cast< QwtDate::IntervalType >( j ) );
243 alignedToWeeks =
false;
275 #if QT_VERSION >= 0x050200 The interval is related to weeks.
QwtDateScaleDraw(Qt::TimeSpec=Qt::LocalTime)
Constructor.
virtual QwtDate::IntervalType intervalType(const QwtScaleDiv &) const
The interval is related to years.
The interval is related to months.
QList< double > ticks(int tickType) const
Qt::TimeSpec timeSpec() const
virtual ~QwtDateScaleDraw()
Destructor.
static QDateTime floor(const QDateTime &, IntervalType)
A class representing a scale division.
void setUtcOffset(int 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 &)
QString dateFormat(QwtDate::IntervalType) const
The interval is related to milliseconds.
QwtDate::Week0Type week0Type() const
static QDateTime toDateTime(double value, Qt::TimeSpec=Qt::UTC)
QString dateFormats[QwtDate::Year+1]
QDateTime toDateTime(double) const
A collection of methods around date/time values.
static QString toString(const QDateTime &, const QString &format, Week0Type)
The interval is related to seconds.
PrivateData(Qt::TimeSpec spec)
virtual QwtText label(double) const QWT_OVERRIDE
Convert a value into its representing label.
virtual QString dateFormatOfDate(const QDateTime &, QwtDate::IntervalType) const
std::basic_string< Char > format(const text_style &ts, const S &format_str, const Args &... args)
The interval is related to days.