zoomableproxyobject.hpp 714 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef CVVISUAL_ZOOMALBE_PROXY_OBJECT
#define CVVISUAL_ZOOMALBE_PROXY_OBJECT

#include <QGraphicsProxyWidget>
#include <QGraphicsSceneContextMenuEvent>

#include "../zoomableimage.hpp"

namespace cvv
{
namespace qtutil
{
namespace structures
{
/**
 * @brief spezific class for MatchScene
 */
class ZoomableProxyObject : public QGraphicsProxyWidget
{
      public:
	ZoomableProxyObject(ZoomableImage *zoom);

23
    ~ZoomableProxyObject() CV_OVERRIDE
24 25 26 27
	{
	}

      protected:
28
    virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event) CV_OVERRIDE
29 30 31 32
	{
		event->ignore();
	}

33
    virtual void wheelEvent(QGraphicsSceneWheelEvent *event) CV_OVERRIDE;
34 35 36 37 38 39 40 41 42

      private:
	ZoomableImage *image_;
};

}
}
}
#endif