2014-11-13 01:04:59 +02:00
|
|
|
#ifndef KICONEFFECTTEST_H
|
|
|
|
#define KICONEFFECTTEST_H
|
|
|
|
|
|
|
|
#include <QtGui/QScrollArea>
|
|
|
|
#include <QtGui/QImage>
|
|
|
|
|
2017-08-04 09:17:49 +00:00
|
|
|
#include <QLabel>
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
class KIconEffectTestWidget : public QScrollArea
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
KIconEffectTestWidget(QWidget *parent=0);
|
|
|
|
private Q_SLOTS:
|
|
|
|
void slotGray(int);
|
|
|
|
void slotMonochrome(int);
|
|
|
|
void slotDesaturate(int);
|
|
|
|
void slotGamma(int);
|
|
|
|
void slotColorizeColor(const QColor &);
|
|
|
|
void slotColorizeValue(int);
|
|
|
|
private:
|
|
|
|
QImage img;
|
|
|
|
QLabel *lbl[6];
|
|
|
|
QColor colorizedColor;
|
|
|
|
float colorizedValue;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|