mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
19 lines
504 B
C++
19 lines
504 B
C++
//-----------------------------------------------------------------
|
|
// 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 *p,
|
|
const QwtScaleMap &, const QwtScaleMap &,
|
|
const QRect &rect) const;
|
|
};
|