qt_demoe/qwtdemo/examples/cpuplot/cpupiemarker.h

18 lines
494 B
C
Raw Normal View History

2019-11-07 02:55:57 +00:00
//-----------------------------------------------------------------
// This class shows how to extend QwtPlotItems. It displays a
// pie chart of user/total/idle cpu usage in percent.
//-----------------------------------------------------------------
#include <qwt_plot_item.h>
class CpuPieMarker: public QwtPlotItem
{
public:
CpuPieMarker();
virtual int rtti() const;
virtual void draw( QPainter *,
const QwtScaleMap &, const QwtScaleMap &, const QRectF & ) const;
};