| 3473 | } |
| 3474 | |
| 3475 | float getLuminance(const QColor &col) |
| 3476 | { |
| 3477 | return (float)(0.2126 * qPow(col.redF(), 2.2) + 0.7152 * qPow(col.greenF(), 2.2) + |
| 3478 | 0.0722 * qPow(col.blueF(), 2.2)); |
| 3479 | } |
| 3480 | |
| 3481 | QColor contrastingColor(const QColor &col, const QColor &defaultCol) |
| 3482 | { |
no test coverage detected