Eventviews
monthgraphicsitems.cpp
33void ScrollIndicator::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
206 return QRectF(0, 0, (daySpan() + 1) * mMonthItem->monthScene()->columnWidth() - 2, mMonthItem->monthScene()->itemHeight());
222 frameColor = mMonthItem->selected() ? frameColor.lighter(EventView::BRIGHTNESS_FACTOR) : frameColor;
262 QRect textRect = QRect(textMargin, 0, static_cast<int>(boundingRect().width() - 2 * textMargin), scene->itemHeight());
353 - mMonthItem->monthScene()->startHeight() * mMonthItem->monthScene()->itemHeightIncludingSpacing(); // scrolling
358 || mMonthItem->position() - mMonthItem->monthScene()->startHeight() >= mMonthItem->monthScene()->maxRowCount()) {
bool isMoving() const
Returns true if this item is currently being moved (ie.
Definition monthgraphicsitems.cpp:131
void updateGeometry()
Change QGraphicsItem pos and boundingRect in the scene according to the incidence start and end date.
Definition monthgraphicsitems.cpp:334
QRectF boundingRect() const override
Reimplemented from QGraphicsItem.
Definition monthgraphicsitems.cpp:203
bool isBeginItem() const
Returns true if this MonthGraphicsItem is the first one of the MonthItem ones.
Definition monthgraphicsitems.cpp:141
bool isEndItem() const
Returns true if this MonthGraphicsItem is the last one of the MonthItem ones.
Definition monthgraphicsitems.cpp:136
int daySpan() const
Returns the number of day this item spans on minus one to be compatible with QDate::addDays().
Definition monthgraphicsitems.cpp:329
virtual QColor frameColor() const =0
Returns the frame color of the item.
MonthScene * monthScene() const
Returns the associated month scene to this item.
Definition monthitem.h:121
QDate endDate() const
The end date of the incidence, generally realEndDate.
Definition monthitem.cpp:193
virtual QColor bgColor() const =0
Returns the background color of the item.
virtual QString toolTipText(const QDate &date) const =0
Returns the text for the tooltip of the item.
virtual QList< QPixmap > icons() const =0
Returns a list of pixmaps to draw next to the items.
QDate startDate() const
The start date of the incidence, generally realStartDate.
Definition monthitem.cpp:184
virtual QString text(bool end) const =0
Returns the text to draw in an item.
Graphics items which indicates that the view can be scrolled to display more events.
Definition monthgraphicsitems.h:22
Namespace EventViews provides facilities for displaying incidences, including events,...
Definition agenda.h:33
QColor getTextColor(const QColor &c)
Returns a nice QColor for text, give the input color &c.
Definition helper.cpp:26
KDOCTOOLS_EXPORT QString transform(const QString &file, const QString &stylesheet, const QList< const char * > ¶ms=QList< const char * >())
QString path(const QString &relativePath)
KIOCORE_EXPORT QString dir(const QString &fileClass)
QColor lighter(int factor) const const
void setAlphaF(float alpha)
QDate addDays(qint64 ndays) const const
QString elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags) const const
QSize size(int flags, const QString &text, int tabStops, int *tabArray) const const
void hide()
void prepareGeometryChange()
QGraphicsScene * scene() const const
void setPos(const QPointF &pos)
void show()
void update(const QRectF &rect)
void removeItem(QGraphicsItem *item)
Antialiasing
void drawPath(const QPainterPath &path)
void drawPixmap(const QPoint &point, const QPixmap &pixmap)
void drawPolygon(const QPoint *points, int pointCount, Qt::FillRule fillRule)
void drawText(const QPoint &position, const QString &text)
QFontMetrics fontMetrics() const const
void setBrush(Qt::BrushStyle style)
void setFont(const QFont &font)
void setLayoutDirection(Qt::LayoutDirection direction)
void setPen(Qt::PenStyle style)
void setRenderHint(RenderHint hint, bool on)
WindowText
int height() const const
int left() const const
void setLeft(int x)
int width() const const
qreal height() const const
qreal width() const const
int width() const const
bool isRightToLeft() const const
AlignVCenter
NoBrush
RightToLeft
RoundCap
RoundJoin
NoPen
ElideRight
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:11 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.