Changeset View
Changeset View
Standalone View
Standalone View
src/qt/trafficgraphwidget.h
Show All 18 Lines | class TrafficGraphWidget : public QWidget { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit TrafficGraphWidget(QWidget *parent = 0); | explicit TrafficGraphWidget(QWidget *parent = 0); | ||||
void setClientModel(ClientModel *model); | void setClientModel(ClientModel *model); | ||||
int getGraphRangeMins() const; | int getGraphRangeMins() const; | ||||
protected: | protected: | ||||
void paintEvent(QPaintEvent *); | void paintEvent(QPaintEvent *) override; | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
void updateRates(); | void updateRates(); | ||||
void setGraphRangeMins(int mins); | void setGraphRangeMins(int mins); | ||||
void clear(); | void clear(); | ||||
private: | private: | ||||
void paintPath(QPainterPath &path, QQueue<float> &samples); | void paintPath(QPainterPath &path, QQueue<float> &samples); | ||||
Show All 12 Lines |