]> git.cworth.org Git - apitrace/blobdiff - gui/imageviewer.h
image: Fix allocation of floating point images.
[apitrace] / gui / imageviewer.h
index 05e8f458e94d53e11c02e0f393adc34eabbf91f0..141ca175a91676b3a04d7e3c9429f60510330330 100644 (file)
@@ -4,6 +4,9 @@
 #include "ui_imageviewer.h"
 #include <QDialog>
 
+class PixelWidget;
+class QLabel;
+
 class ImageViewer : public QDialog, public Ui_ImageViewer
 {
     Q_OBJECT
@@ -11,6 +14,22 @@ public:
     ImageViewer(QWidget *parent = 0);
 
     void setImage(const QImage &image);
+
+    QSize sizeHint() const;
+
+protected:
+    void resizeEvent(QResizeEvent *event);
+
+private slots:
+    void slotUpdate();
+    void showPixel(int, int);
+    void showGrid(const QRect &rect);
+
+private:
+    QImage m_image;
+    QImage m_temp;
+    PixelWidget *m_pixelWidget;
+    QLabel *m_pixelLabel;
 };