File indexing completed on 2024-05-19 04:48:21
0001 #pragma once 0002 #include <QObject> 0003 #include <QColor> 0004 0005 class ColorUtils : public QObject 0006 { 0007 Q_OBJECT 0008 public: 0009 explicit ColorUtils(QObject *parent = nullptr); 0010 0011 public Q_SLOTS: 0012 qreal contrastRatio(const QColor &c1, const QColor &c2); 0013 0014 }; 0015