//definition GRAYSCALE filter #ifndef GRAYSCALE_H #define GRAYSCALE_H #include<qobject.h> #include<qcolor.h> #include<qimage.h> class GrayScale : public QObject{ Q_OBJECT public: GrayScale(); ~GrayScale(); void toGrayScale(QImage*); }; #endif //GRAYSCALE_H