summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxmouseregion.h
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-07-29 01:32:10 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-07-29 01:32:10 (GMT)
commit499c7ff91b8fa004409e0959ba1eb70c06613b5a (patch)
treea11f78d81f13ca0c656bc3907addf2ff6cbbf5bd /src/declarative/fx/qfxmouseregion.h
parent4da7fd6e3b2b9af85401067612098f02182edc4d (diff)
downloadQt-499c7ff91b8fa004409e0959ba1eb70c06613b5a.zip
Qt-499c7ff91b8fa004409e0959ba1eb70c06613b5a.tar.gz
Qt-499c7ff91b8fa004409e0959ba1eb70c06613b5a.tar.bz2
Use real instead of int for MouseRegion.
Diffstat (limited to 'src/declarative/fx/qfxmouseregion.h')
-rw-r--r--src/declarative/fx/qfxmouseregion.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/declarative/fx/qfxmouseregion.h b/src/declarative/fx/qfxmouseregion.h
index 47929be..6d85cea 100644
--- a/src/declarative/fx/qfxmouseregion.h
+++ b/src/declarative/fx/qfxmouseregion.h
@@ -56,10 +56,10 @@ class Q_DECLARATIVE_EXPORT QFxDrag : public QObject
Q_PROPERTY(QFxItem *target READ target WRITE setTarget)
Q_PROPERTY(QString axis READ axis WRITE setAxis)
- Q_PROPERTY(int xmin READ xmin WRITE setXmin)
- Q_PROPERTY(int xmax READ xmax WRITE setXmax)
- Q_PROPERTY(int ymin READ ymin WRITE setYmin)
- Q_PROPERTY(int ymax READ ymax WRITE setYmax)
+ Q_PROPERTY(qreal xmin READ xmin WRITE setXmin)
+ Q_PROPERTY(qreal xmax READ xmax WRITE setXmax)
+ Q_PROPERTY(qreal ymin READ ymin WRITE setYmin)
+ Q_PROPERTY(qreal ymax READ ymax WRITE setYmax)
public:
QFxDrag(QObject *parent=0);
~QFxDrag();
@@ -68,22 +68,22 @@ public:
void setTarget(QFxItem *);
QString axis() const;
void setAxis(const QString &);
- int xmin() const;
- void setXmin(int);
- int xmax() const;
- void setXmax(int);
- int ymin() const;
- void setYmin(int);
- int ymax() const;
- void setYmax(int);
+ qreal xmin() const;
+ void setXmin(qreal);
+ qreal xmax() const;
+ void setXmax(qreal);
+ qreal ymin() const;
+ void setYmin(qreal);
+ qreal ymax() const;
+ void setYmax(qreal);
private:
QFxItem *_target;
QString _axis;
- int _xmin;
- int _xmax;
- int _ymin;
- int _ymax;
+ qreal _xmin;
+ qreal _xmax;
+ qreal _ymin;
+ qreal _ymax;
Q_DISABLE_COPY(QFxDrag)
};
@@ -93,8 +93,8 @@ class Q_DECLARATIVE_EXPORT QFxMouseRegion : public QFxItem
{
Q_OBJECT
- Q_PROPERTY(int mouseX READ mouseX NOTIFY positionChanged)
- Q_PROPERTY(int mouseY READ mouseY NOTIFY positionChanged)
+ Q_PROPERTY(qreal mouseX READ mouseX NOTIFY positionChanged)
+ Q_PROPERTY(qreal mouseY READ mouseY NOTIFY positionChanged)
Q_PROPERTY(bool containsMouse READ hovered NOTIFY hoveredChanged)
Q_PROPERTY(bool pressed READ pressed NOTIFY pressedChanged)
Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled)
@@ -103,8 +103,8 @@ public:
QFxMouseRegion(QFxItem *parent=0);
~QFxMouseRegion();
- int mouseX() const;
- int mouseY() const;
+ qreal mouseX() const;
+ qreal mouseY() const;
bool isEnabled() const;
void setEnabled(bool);