Changeset View
Changeset View
Standalone View
Standalone View
src/month/monthgraphicsitems.cpp
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 57 | if (mDirection == ScrollIndicator::UpArrow) { | |||
---|---|---|---|---|---|
58 | arrow.setPoint(0, 0, -mHeight / 2); | 58 | arrow.setPoint(0, 0, -mHeight / 2); | ||
59 | arrow.setPoint(1, mWidth / 2, mHeight / 2); | 59 | arrow.setPoint(1, mWidth / 2, mHeight / 2); | ||
60 | arrow.setPoint(2, -mWidth / 2, mHeight / 2); | 60 | arrow.setPoint(2, -mWidth / 2, mHeight / 2); | ||
61 | } else if (mDirection == ScrollIndicator::DownArrow) { // down | 61 | } else if (mDirection == ScrollIndicator::DownArrow) { // down | ||
62 | arrow.setPoint(1, mWidth / 2, -mHeight / 2); | 62 | arrow.setPoint(1, mWidth / 2, -mHeight / 2); | ||
63 | arrow.setPoint(2, -mWidth / 2, -mHeight / 2); | 63 | arrow.setPoint(2, -mWidth / 2, -mHeight / 2); | ||
64 | arrow.setPoint(0, 0, mHeight / 2); | 64 | arrow.setPoint(0, 0, mHeight / 2); | ||
65 | } | 65 | } | ||
66 | QColor color(Qt::black); | 66 | QColor color(QPalette().color(QPalette::WindowText)); | ||
67 | color.setAlpha(155); | 67 | color.setAlpha(155); | ||
68 | painter->setBrush(color); | 68 | painter->setBrush(color); | ||
69 | painter->setPen(color); | 69 | painter->setPen(color); | ||
70 | painter->drawPolygon(arrow); | 70 | painter->drawPolygon(arrow); | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | //------------------------------------------------------------- | 73 | //------------------------------------------------------------- | ||
74 | MonthCell::MonthCell(int id, const QDate &date, QGraphicsScene *scene) | 74 | MonthCell::MonthCell(int id, const QDate &date, QGraphicsScene *scene) | ||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |