File indexing completed on 2024-04-14 03:52:25

0001 #ifndef KICONEFFECTTEST_H
0002 #define KICONEFFECTTEST_H
0003 
0004 #include <QImage>
0005 #include <QScrollArea>
0006 
0007 class QLabel;
0008 
0009 class KIconEffectTestWidget : public QScrollArea
0010 {
0011     Q_OBJECT
0012 public:
0013     KIconEffectTestWidget(QWidget *parent = nullptr);
0014 private Q_SLOTS:
0015     void slotGray(int);
0016     void slotMonochrome(int);
0017     void slotDesaturate(int);
0018     void slotGamma(int);
0019     void slotColorizeColor(const QColor &);
0020     void slotColorizeValue(int);
0021 
0022 private:
0023     QImage img;
0024     QLabel *lbl[6];
0025     QColor colorizedColor;
0026     float colorizedValue;
0027 };
0028 
0029 #endif