KGantt
kganttdatetimegrid.h
300 * DateTimeScaleFormatter formatter = DateTimeScaleFormatter( DateTimeScaleFormatter::Week, "yyyy-MM-dd" );
303 * Optionally, you can set an user defined text alignment flag. The default value is Qt::AlignCenter.
AbstractGrid(QObject *parent=nullptr)
Definition kganttabstractgrid.cpp:17
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...
Definition kganttabstractrowcontroller.h:28
virtual void paintHourScaleHeader(QPainter *painter, const QRectF &headerRect, const QRectF &exposedRect, qreal offset, QWidget *widget=nullptr)
Definition kganttdatetimegrid.cpp:936
virtual void drawDayForeground(QPainter *painter, const QRectF &rect, const QDate &date)
Definition kganttdatetimegrid.cpp:1094
bool mapFromChart(const Span &span, const QModelIndex &idx, const QList< Constraint > &constraints=QList< Constraint >()) const override
Definition kganttdatetimegrid.cpp:454
virtual void paintDayScaleHeader(QPainter *painter, const QRectF &headerRect, const QRectF &exposedRect, qreal offset, QWidget *widget=nullptr)
Definition kganttdatetimegrid.cpp:975
DateTimeTimeLine * timeLine() const
Definition kganttdatetimegrid.cpp:1212
void paintHeader(QPainter *painter, const QRectF &headerRect, const QRectF &exposedRect, qreal offset, QWidget *widget=nullptr) override
Definition kganttdatetimegrid.cpp:799
QBrush noInformationBrush() const
Definition kganttdatetimegrid.cpp:385
DateTimeScaleFormatter * userDefinedUpperScale() const
Definition kganttdatetimegrid.cpp:323
QDateTime startDateTime() const
Definition kganttdatetimegrid.cpp:249
void setStartDateTime(const QDateTime &dt)
Definition kganttdatetimegrid.cpp:255
virtual void drawDayBackground(QPainter *painter, const QRectF &rect, const QDate &date)
Definition kganttdatetimegrid.cpp:1085
void drawForeground(QPainter *paint, const QRectF &rect) override
Definition kganttdatetimegrid.cpp:1168
void setRowSeparators(bool enable)
Definition kganttdatetimegrid.cpp:372
DateTimeScaleFormatter * userDefinedLowerScale() const
Definition kganttdatetimegrid.cpp:317
qreal mapFromDateTime(const QDateTime &dt) const
Definition kganttdatetimegrid.cpp:268
void setWeekStart(Qt::DayOfWeek)
Definition kganttdatetimegrid.cpp:329
Span mapToChart(const QModelIndex &idx) const override
Definition kganttdatetimegrid.cpp:408
QRectF computeRect(const QDateTime &from, const QDateTime &to, const QRectF &rect) const
Return the rectangle that represents the date-range.
Definition kganttdatetimegrid.cpp:1103
void setNoInformationBrush(const QBrush &brush)
Definition kganttdatetimegrid.cpp:378
void drawBackground(QPainter *paint, const QRectF &rect) override
Definition kganttdatetimegrid.cpp:1123
QPair< QDateTime, QDateTime > dateTimeRange(const QRectF &rect) const
Return a date-range represented by the rectangle.
Definition kganttdatetimegrid.cpp:1112
QDateTime mapToDateTime(qreal x) const
Definition kganttdatetimegrid.cpp:274
virtual void paintWeekScaleHeader(QPainter *painter, const QRectF &headerRect, const QRectF &exposedRect, qreal offset, QWidget *widget=nullptr)
Definition kganttdatetimegrid.cpp:1013
QBrush freeDaysBrush() const
Definition kganttdatetimegrid.cpp:361
void setUserDefinedLowerScale(DateTimeScaleFormatter *lower)
Definition kganttdatetimegrid.cpp:301
virtual void paintMonthScaleHeader(QPainter *painter, const QRectF &headerRect, const QRectF &exposedRect, qreal offset, QWidget *widget=nullptr)
Definition kganttdatetimegrid.cpp:1050
void paintGrid(QPainter *painter, const QRectF &sceneRect, const QRectF &exposedRect, AbstractRowController *rowController=nullptr, QWidget *widget=nullptr) override
Definition kganttdatetimegrid.cpp:665
QSet< Qt::DayOfWeek > freeDays() const
Definition kganttdatetimegrid.cpp:349
void setUserDefinedUpperScale(DateTimeScaleFormatter *upper)
Definition kganttdatetimegrid.cpp:309
void setFreeDaysBrush(const QBrush brush)
Definition kganttdatetimegrid.cpp:355
void setFreeDays(const QSet< Qt::DayOfWeek > &fd)
Definition kganttdatetimegrid.cpp:342
virtual QDateTime nextRangeBegin(const QDateTime &datetime) const
Definition kganttdatetimegrid.cpp:142
virtual QDateTime currentRangeBegin(const QDateTime &datetime) const
Definition kganttdatetimegrid.cpp:195
DateTimeScaleFormatter(Range range, const QString &formatString, Qt::Alignment alignment=Qt::AlignCenter)
Definition kganttdatetimegrid.cpp:80
Q_OBJECTQ_OBJECT
typedef Alignment
DayOfWeek
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:31 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:31 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.