##// END OF EJS Templates
Refactoring declarative xy series
Refactoring declarative xy series

File last commit:

r790:68c6a254cbfa
r793:dbc1daf2590a
Show More
legendscrollbutton_p.h
34 lines | 692 B | text/x-c | CLexer
/ src / legendscrollbutton_p.h
sauimone
Scrolling logic to legend
r716 #ifndef LEGENDSCROLLBUTTON_P_H
#define LEGENDSCROLLBUTTON_P_H
#include <QObject>
#include <qchartglobal.h>
#include <QGraphicsPolygonItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Fix attempt to wrong graphics items hadnling
r790 class QLegend;
class LegendScrollButton : public QGraphicsPolygonItem
sauimone
Scrolling logic to legend
r716 {
public:
enum ScrollButtonId {
ScrollButtonIdLeft,
ScrollButtonIdRight,
ScrollButtonIdUp,
ScrollButtonIdDown
};
Michal Klocek
Fix attempt to wrong graphics items hadnling
r790 explicit LegendScrollButton(ScrollButtonId id, QLegend *legend);
sauimone
Scrolling logic to legend
r716 ScrollButtonId id();
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
private:
sauimone
legend marker pointer fix
r778 ScrollButtonId m_id;
Michal Klocek
Fix attempt to wrong graphics items hadnling
r790 QLegend *m_ledgend;
sauimone
Scrolling logic to legend
r716 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // LEGENDSCROLLBUTTON_P_H