##// END OF EJS Templates
Add stub from minimum size
Add stub from minimum size

File last commit:

r778:5dd3677a0f14
r782:55ca9199fd76
Show More
legendscrollbutton.cpp
26 lines | 541 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)
sauimone
legend marker pointer fix
r778 ,m_id(id)
sauimone
Scrolling logic to legend
r716 {
setAcceptedMouseButtons(Qt::LeftButton);
}
LegendScrollButton::ScrollButtonId LegendScrollButton::id()
{
sauimone
legend marker pointer fix
r778 return m_id;
sauimone
Scrolling logic to legend
r716 }
void LegendScrollButton::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
emit clicked(event);
}
#include "moc_legendscrollbutton_p.cpp"
QTCOMMERCIALCHART_END_NAMESPACE