]> git.sesse.net Git - nageru/blobdiff - analyzer.h
Make it possible to hover over the grabbed image to get out RGB values.
[nageru] / analyzer.h
index 3cefdc90991969c990e1385a93c6738e463aad99..68fb14e608511c4a88e7817ccef689644c59ba57 100644 (file)
@@ -2,6 +2,7 @@
 #define _ANALYZER_H 1
 
 #include <QDialog>
+#include <QImage>
 #include <QString>
 
 #include <epoxy/gl.h>
@@ -29,12 +30,14 @@ public:
 private:
        void grab_clicked();
        void signal_changed();
+       bool eventFilter(QObject *watched, QEvent *event) override;
 
        Ui::Analyzer *ui;
        QSurface *surface;
        QOpenGLContext *context;
        GLuint pbo;
        movit::ResourcePool *resource_pool = nullptr;
+       QImage grabbed_image;
 };
 
 #endif  // !defined(_ANALYZER_H)