Files
qt5-legatus-legacy/Lts/Viewer/SituationMap/Utils/mouse_move_overlay.h
T
2026-08-13 18:33:10 +02:00

58 lines
1.1 KiB
C++
Executable File

/**
* @RDE_HEADER@
* MouseMoveOverlay
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <QGraphicsItem>
namespace EsriRuntimeQt
{
class MapGraphicsView;
}
//----------------------------------------------------------------------------
namespace SituationMap
{
class MapImpl;
class MouseMoveOverlay : public QGraphicsItem
{
// Q_OBJECT
public:
explicit MouseMoveOverlay(MapImpl *mapImpl);
virtual ~MouseMoveOverlay();
signals:
// void mousePositionChanged(const QPointF& screenPos, QPointF& mapPos);
// void mousePositionChanged();
protected:
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
private :
MouseMoveOverlay(const MouseMoveOverlay &other) = delete;
MouseMoveOverlay &operator=(const MouseMoveOverlay &other) = delete;
class Private;
/**
* The private d-pointer to not break BC when changing internals of this class
*/
Private *d = nullptr;
};
} // namespace SituationMap