##// END OF EJS Templates
Fix attempt to wrong graphics items hadnling
Fix attempt to wrong graphics items hadnling

File last commit:

r790:68c6a254cbfa
r790:68c6a254cbfa
Show More
legendscrollbutton_p.h
34 lines | 692 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 QLegend;
class LegendScrollButton : public QGraphicsPolygonItem
{
public:
enum ScrollButtonId {
ScrollButtonIdLeft,
ScrollButtonIdRight,
ScrollButtonIdUp,
ScrollButtonIdDown
};
explicit LegendScrollButton(ScrollButtonId id, QLegend *legend);
ScrollButtonId id();
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
private:
ScrollButtonId m_id;
QLegend *m_ledgend;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // LEGENDSCROLLBUTTON_P_H