~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.2/examples/event_filter/scalepicker.h

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <qobject.h>
 
2
#include <qrect.h>
 
3
 
 
4
class QwtPlot;
 
5
class QwtScaleWidget;
 
6
 
 
7
class ScalePicker: public QObject
 
8
{
 
9
    Q_OBJECT
 
10
public:
 
11
    ScalePicker(QwtPlot *plot);
 
12
    virtual bool eventFilter(QObject *, QEvent *);
 
13
 
 
14
signals:
 
15
    void clicked(int axis, double value);
 
16
 
 
17
private:
 
18
    void mouseClicked(const QwtScaleWidget *, const QPoint &);
 
19
    QRect scaleRect(const QwtScaleWidget *) const;
 
20
};