summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativemousearea_p.h
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-20 00:56:04 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-04-20 01:11:13 (GMT)
commitfca7ddd5522f1462192b6c2b4b9e9e5a0f8449d9 (patch)
tree61c30b5562b53fa5997c05abfb66c248e5082482 /src/declarative/graphicsitems/qdeclarativemousearea_p.h
parent8efa7be3fd66119753730be643d0882afe329348 (diff)
downloadQt-fca7ddd5522f1462192b6c2b4b9e9e5a0f8449d9.zip
Qt-fca7ddd5522f1462192b6c2b4b9e9e5a0f8449d9.tar.gz
Qt-fca7ddd5522f1462192b6c2b4b9e9e5a0f8449d9.tar.bz2
Add drag.active property to MouseArea in qml
The drag.active property specifies if the target item is being dragged. Task-number: QTBUG-9833 Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativemousearea_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativemousearea_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea_p.h b/src/declarative/graphicsitems/qdeclarativemousearea_p.h
index 630840f..4f7df62 100644
--- a/src/declarative/graphicsitems/qdeclarativemousearea_p.h
+++ b/src/declarative/graphicsitems/qdeclarativemousearea_p.h
@@ -61,6 +61,7 @@ class Q_DECLARATIVE_EXPORT QDeclarativeDrag : public QObject
Q_PROPERTY(qreal maximumX READ xmax WRITE setXmax NOTIFY maximumXChanged)
Q_PROPERTY(qreal minimumY READ ymin WRITE setYmin NOTIFY minimumYChanged)
Q_PROPERTY(qreal maximumY READ ymax WRITE setYmax NOTIFY maximumYChanged)
+ Q_PROPERTY(bool active READ active NOTIFY activeChanged)
//### consider drag and drop
public:
@@ -84,6 +85,9 @@ public:
qreal ymax() const;
void setYmax(qreal);
+ bool active() const;
+ void setActive(bool);
+
Q_SIGNALS:
void targetChanged();
void axisChanged();
@@ -91,6 +95,7 @@ Q_SIGNALS:
void maximumXChanged();
void minimumYChanged();
void maximumYChanged();
+ void activeChanged();
private:
QGraphicsObject *_target;
@@ -99,6 +104,7 @@ private:
qreal _xmax;
qreal _ymin;
qreal _ymax;
+ bool _active;
Q_DISABLE_COPY(QDeclarativeDrag)
};