15 #include <QMouseEvent> 88 unsigned int index(0);
91 if (iter->contains(p))
void mouseReleased(const QString &hotspotName)
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)
void mouseReleaseEvent(QMouseEvent *e) override
IndexToNameMapType m_HotspotNameForIndex
~QClickableLabel() override
NameToIndexMapType m_HotspotIndexForName
unsigned int matchingRect(const QPoint &p)
returns index == m_Hotspots.size() if nothing is hit
void RemoveHotspot(const QString &name)