##// END OF EJS Templates
Fixed integrated build on OSX
Fixed integrated build on OSX

File last commit:

r716:e7d88adcf7ee
r721:a5d0004908a0
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