##// END OF EJS Templates
Title and name of QSeries replaced with name
Title and name of QSeries replaced with name

File last commit:

r716:e7d88adcf7ee
r731:90a16700f8b3
Show More
legendscrollbutton.cpp
26 lines | 539 B | text/x-c | CppLexer
/ src / legendscrollbutton.cpp
sauimone
Scrolling logic to legend
r716 #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