##// END OF EJS Templates
Adds owvership to domain
Adds owvership to domain

File last commit:

r778:5dd3677a0f14
r787:e08865d3185f
Show More
legendscrollbutton.cpp
26 lines | 541 B | text/x-c | CppLexer
/ src / legendscrollbutton.cpp
#include "legendscrollbutton_p.h"
#include <QGraphicsSceneEvent>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
LegendScrollButton::LegendScrollButton(ScrollButtonId id, QGraphicsItem *parent)
: QGraphicsPolygonItem(parent)
,m_id(id)
{
setAcceptedMouseButtons(Qt::LeftButton);
}
LegendScrollButton::ScrollButtonId LegendScrollButton::id()
{
return m_id;
}
void LegendScrollButton::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
emit clicked(event);
}
#include "moc_legendscrollbutton_p.cpp"
QTCOMMERCIALCHART_END_NAMESPACE