##// END OF EJS Templates
Animation refactor...
Animation refactor * removes animation per derived item desing * new design aims to make centralized animation hadnling * removes animationitem and animator templets * removes axisanimationitem * adds chartanimator * adds chartanimatioms * add axis and xy animations

File last commit:

r486:7ab45bf9f776
r530:d482058261e4
Show More
chartwidget.h
28 lines | 519 B | text/x-c | CLexer
#ifndef CHARTWIDGET_H
#define CHARTWIDGET_H
#include <qchartview.h>
#include <QRubberBand>
QTCOMMERCIALCHART_USE_NAMESPACE
class ChartWidget : public QChartView
{
Q_OBJECT
public:
ChartWidget(QWidget *parent = 0);
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
private:
bool rubberBandIsShown;
QRubberBand m_rubberBand;
QPoint m_origin;
};
#endif