zoomableproxyobject.hpp 669 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 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#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);

	~ZoomableProxyObject()
	{
	}

      protected:
	virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
	{
		event->ignore();
	}

	virtual void wheelEvent(QGraphicsSceneWheelEvent *event);

      private:
	ZoomableImage *image_;
};

}
}
}
#endif