~showard314/ubuntu/natty/qtiplot/Python2.7_fix

« back to all changes in this revision

Viewing changes to 3rdparty/qwt/examples/cpuplot/cpupiemarker.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-04-04 15:11:55 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404151155-rjp12ziov4tryj0o
Tags: 0.9.4-1
* New upstream release.
* Refresh patches.
* Remove 04_homepage_url patch. Merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//-----------------------------------------------------------------
 
2
// This class shows how to extend QwtPlotItems. It displays a
 
3
// pie chart of user/total/idle cpu usage in percent.
 
4
//-----------------------------------------------------------------
 
5
 
 
6
#include <qwt_plot_item.h>
 
7
 
 
8
class CpuPieMarker: public QwtPlotItem
 
9
{
 
10
public:
 
11
    CpuPieMarker();
 
12
 
 
13
    virtual int rtti() const;
 
14
 
 
15
    virtual void draw(QPainter *p,
 
16
        const QwtScaleMap &, const QwtScaleMap &,
 
17
        const QRect &rect) const;
 
18
};