| 16 | |
| 17 | namespace { |
| 18 | QColor backgroundColor(int line, bool isCurrent) |
| 19 | { |
| 20 | const int degrees = (line * 139) % 360; |
| 21 | return QColor::fromHsv(degrees, 255, 255, isCurrent ? 60 : 40); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | CodeDelegate::CodeDelegate(int lineNumberRole, int highlightRole, int syntaxHighlightRole, QObject* parent) |