##// END OF EJS Templates
PieSliceItem bounding rect fix
PieSliceItem bounding rect fix

File last commit:

r716:e7d88adcf7ee
r718:7a2556deb83d
Show More
legendscrollbutton_p.h
38 lines | 771 B | text/x-c | CLexer
/ src / legendscrollbutton_p.h
#ifndef LEGENDSCROLLBUTTON_P_H
#define LEGENDSCROLLBUTTON_P_H
#include <QObject>
#include <qchartglobal.h>
#include <QGraphicsPolygonItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class LegendScrollButton : public QObject, public QGraphicsPolygonItem
{
Q_OBJECT
public:
enum ScrollButtonId {
ScrollButtonIdLeft,
ScrollButtonIdRight,
ScrollButtonIdUp,
ScrollButtonIdDown
};
explicit LegendScrollButton(ScrollButtonId id, QGraphicsItem *parent = 0);
ScrollButtonId id();
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
signals:
void clicked(QGraphicsSceneMouseEvent* event);
public slots:
private:
ScrollButtonId mId;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // LEGENDSCROLLBUTTON_P_H