summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-12-29 14:49:55 +0100
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2010-12-29 14:49:55 +0100
commit1369273d843fe74695911d5cdacb13307ae3f8e9 (patch)
treea0d5281adf50f6ce68bf2d923556449494793714
parent16977ad4af73ba31e6b80a8baf19f43a3729342c (diff)
Amendment to 16977ad4af73ba31e6b80a8baf19f43a3729342c
(make PathView usable with qt-scene-graph)
-rw-r--r--src/graphicsitems/qxpathview.cpp6
-rw-r--r--src/graphicsitems/qxpathview_p.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/graphicsitems/qxpathview.cpp b/src/graphicsitems/qxpathview.cpp
index 54a1dbd..f41bec0 100644
--- a/src/graphicsitems/qxpathview.cpp
+++ b/src/graphicsitems/qxpathview.cpp
@@ -824,6 +824,12 @@ void QxPathView::setInteractive(bool interactive)
}
}
+bool QxPathView::isMoving() const
+{
+ Q_D(const QxPathView);
+ return d->moving;
+}
+
/*!
\qmlproperty Component PathView::delegate
diff --git a/src/graphicsitems/qxpathview_p.h b/src/graphicsitems/qxpathview_p.h
index 0c43bba..9c8dee0 100644
--- a/src/graphicsitems/qxpathview_p.h
+++ b/src/graphicsitems/qxpathview_p.h
@@ -67,6 +67,7 @@ class QxPathView : public QxItem
Q_PROPERTY(qreal dragMargin READ dragMargin WRITE setDragMargin NOTIFY dragMarginChanged)
Q_PROPERTY(qreal flickDeceleration READ flickDeceleration WRITE setFlickDeceleration NOTIFY flickDecelerationChanged)
Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged)
+ Q_PROPERTY(bool moving READ isMoving NOTIFY movingChanged)
Q_PROPERTY(int count READ count NOTIFY countChanged)
Q_PROPERTY(QDeclarativeComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged)
@@ -116,6 +117,8 @@ public:
bool isInteractive() const;
void setInteractive(bool);
+ bool isMoving() const;
+
int count() const;
QDeclarativeComponent *delegate() const;