Changeset View
Changeset View
Standalone View
Standalone View
src/agenda/agendaitem.h
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Line(s) | |||||
274 | private: | 274 | private: | ||
275 | void paintIcon(QPainter *p, int &x, int y, int ft); | 275 | void paintIcon(QPainter *p, int &x, int y, int ft); | ||
276 | 276 | | |||
277 | // paint all visible icons | 277 | // paint all visible icons | ||
278 | void paintIcons(QPainter *p, int &x, int y, int ft); | 278 | void paintIcons(QPainter *p, int &x, int y, int ft); | ||
279 | 279 | | |||
280 | void drawRoundedRect(QPainter *p, const QRect &rect, bool selected, const QColor &bgcolor, bool frame, int ft, bool roundTop, bool roundBottom); | 280 | void drawRoundedRect(QPainter *p, const QRect &rect, bool selected, const QColor &bgcolor, bool frame, int ft, bool roundTop, bool roundBottom); | ||
281 | 281 | | |||
282 | Q_REQUIRED_RESULT QColor getCategoryColor() const; | ||||
dvratil: Those look like they could all be `const` methods? | |||||
283 | Q_REQUIRED_RESULT QColor getFrameColor(const QColor &resourceColor, const QColor &categoryColor) const; | ||||
284 | Q_REQUIRED_RESULT QColor getBackgroundColor(const QColor &resourceColor, const QColor &categoryColor) const; | ||||
285 | | ||||
282 | int mCellXLeft, mCellXRight; | 286 | int mCellXLeft, mCellXRight; | ||
283 | int mCellYTop, mCellYBottom; | 287 | int mCellYTop, mCellYBottom; | ||
284 | 288 | | |||
285 | EventView *mEventView = nullptr; | 289 | EventView *mEventView = nullptr; | ||
286 | MultiViewCalendar::Ptr mCalendar; | 290 | MultiViewCalendar::Ptr mCalendar; | ||
287 | KCalCore::Incidence::Ptr mIncidence; | 291 | KCalCore::Incidence::Ptr mIncidence; | ||
288 | QDateTime mOccurrenceDateTime; | 292 | QDateTime mOccurrenceDateTime; | ||
289 | bool mValid; | 293 | bool mValid; | ||
Show All 31 Lines |
Those look like they could all be const methods?