1 #ifndef WEIGHTGRAPHVIEW_H
2 #define WEIGHTGRAPHVIEW_H
7 #include "weightdata.h"
10 class WeightGraphView : public QWidget
14 explicit WeightGraphView(WeightDataModel *wdm, const QString &id, QWidget *parent = 0);
15 QSize sizeHint() const;
16 void grabZoomKeys(bool grab);
17 static void grabZoomKeysForWindow(WId winId, bool grab);
21 void paintEvent(QPaintEvent *);
27 void setPeriod(int period) { this->period = period; update(); }
29 void mousePressEvent(QMouseEvent *);
30 void keyPressEvent(QKeyEvent* event);
37 #endif // WEIGHTGRAPHVIEW_H