##// END OF EJS Templates
Adds owvership to domain
Adds owvership to domain

File last commit:

r778:5dd3677a0f14
r787:e08865d3185f
Show More
legendscrollbutton_p.h
38 lines | 776 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
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);
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
sauimone
Scrolling logic to legend
r716 void clicked(QGraphicsSceneMouseEvent* event);
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
sauimone
Scrolling logic to legend
r716
private:
sauimone
legend marker pointer fix
r778 ScrollButtonId m_id;
sauimone
Scrolling logic to legend
r716 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // LEGENDSCROLLBUTTON_P_H