##// END OF EJS Templates
Defined point sizes for fonts
Defined point sizes for fonts

File last commit:

r716:e7d88adcf7ee
r717:a566cfd317a8
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