##// END OF EJS Templates
build fix.
build fix.

File last commit:

r716:e7d88adcf7ee
r744:4a4cc4b22b41
Show More
legendscrollbutton.cpp
26 lines | 539 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)
,mId(id)
{
setAcceptedMouseButtons(Qt::LeftButton);
}
LegendScrollButton::ScrollButtonId LegendScrollButton::id()
{
return mId;
}
void LegendScrollButton::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
emit clicked(event);
}
#include "moc_legendscrollbutton_p.cpp"
QTCOMMERCIALCHART_END_NAMESPACE