彻底改版2.0
This commit is contained in:
17
third/qwtdemo/examples/cpuplot/cpupiemarker.h
Normal file
17
third/qwtdemo/examples/cpuplot/cpupiemarker.h
Normal file
@@ -0,0 +1,17 @@
|
||||
//-----------------------------------------------------------------
|
||||
// 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;
|
||||
};
|
||||
Reference in New Issue
Block a user