mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
SpeedPlotView: Replace QQueue by boost::circular_buffer, reduce number of points to draw, increase legend background size
This commit is contained in:
@@ -29,9 +29,12 @@
|
||||
#ifndef SPEEDPLOTVIEW_H
|
||||
#define SPEEDPLOTVIEW_H
|
||||
|
||||
#ifndef Q_MOC_RUN
|
||||
#include <boost/circular_buffer.hpp>
|
||||
#endif
|
||||
|
||||
#include <QGraphicsView>
|
||||
#include <QMap>
|
||||
#include <QQueue>
|
||||
class QPen;
|
||||
|
||||
class SpeedPlotView : public QGraphicsView
|
||||
@@ -94,8 +97,8 @@ private:
|
||||
bool m_enable;
|
||||
};
|
||||
|
||||
QQueue<double> m_xData;
|
||||
QMap<GraphID, QQueue<double> > m_yData;
|
||||
boost::circular_buffer<double> m_xData;
|
||||
QMap<GraphID, boost::circular_buffer<double> > m_yData;
|
||||
QMap<GraphID, GraphProperties> m_properties;
|
||||
|
||||
PeriodInSeconds m_viewablePointsCount;
|
||||
|
||||
Reference in New Issue
Block a user