19 #include <QMouseEvent>
92 unsigned int index(0);
95 if (iter->contains(p))
void mouseReleased(const QString &hotspotName)
virtual void mousePressEvent(QMouseEvent *e) override
RectVectorType m_Hotspots
void mousePressed(const QString &hotspotName)
void AddHotspot(const QString &name, const QRect position)
QClickableLabel(QWidget *parent, Qt::WindowFlags f=nullptr)
virtual void mouseReleaseEvent(QMouseEvent *e) override
IndexToNameMapType m_HotspotNameForIndex
NameToIndexMapType m_HotspotIndexForName
unsigned int matchingRect(const QPoint &p)
returns index == m_Hotspots.size() if nothing is hit
void RemoveHotspot(const QString &name)
virtual ~QClickableLabel()