Changeset View
Changeset View
Standalone View
Standalone View
src/month/monthgraphicsitems.h
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Line(s) | 136 | public: | |||
---|---|---|---|---|---|
201 | */ | 201 | */ | ||
202 | QRectF boundingRect() const override; | 202 | QRectF boundingRect() const override; | ||
203 | void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override; | 203 | void paint(QPainter *, const QStyleOptionGraphicsItem *, QWidget *) override; | ||
204 | QPainterPath shape() const override; | 204 | QPainterPath shape() const override; | ||
205 | 205 | | |||
206 | QString getToolTip() const; | 206 | QString getToolTip() const; | ||
207 | 207 | | |||
208 | private: | 208 | private: | ||
209 | // Shape of the item, see shape() | | |||
210 | QPainterPath widgetPath(bool border) const; | | |||
211 | | ||||
212 | // See startDate() | 209 | // See startDate() | ||
213 | QDate mStartDate; | 210 | QDate mStartDate; | ||
214 | 211 | | |||
215 | // See daySpan() | 212 | // See daySpan() | ||
216 | int mDaySpan; | 213 | int mDaySpan; | ||
217 | 214 | | |||
218 | // The current item is part of a MonthItem | 215 | // The current item is part of a MonthItem | ||
219 | MonthItem *mMonthItem; | 216 | MonthItem *mMonthItem; | ||
220 | }; | 217 | }; | ||
221 | 218 | | |||
222 | } | 219 | } | ||
223 | 220 | | |||
224 | #endif | 221 | #endif |