| 92 | // --------------------------------------------------------------------------- |
| 93 | |
| 94 | static QColor ColorForEntry(const MacroScheduleEntry &entry) |
| 95 | { |
| 96 | if (!entry.enabled || entry.IsExpired()) { |
| 97 | return QColor(150, 150, 150); |
| 98 | } |
| 99 | return entry.color.isValid() ? entry.color : QColor(70, 130, 180); |
| 100 | } |
| 101 | |
| 102 | // Returns one CalendarEvent per occurrence of entry within [rangeStart, rangeEnd]. |
| 103 | // For non-repeating entries this is at most one event. |
no test coverage detected