summaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/globalobject.qdoc
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-11-04 03:47:40 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-11-04 03:48:42 (GMT)
commit684fe7af0b6d8133973132fd5b6b01cc16957a10 (patch)
treeb36b7df086818d302921f40aa8661d2381e91ddf /doc/src/declarative/globalobject.qdoc
parentd11f0b71ba8cae27aafc70fedf027f20180837e2 (diff)
downloadQt-684fe7af0b6d8133973132fd5b6b01cc16957a10.zip
Qt-684fe7af0b6d8133973132fd5b6b01cc16957a10.tar.gz
Qt-684fe7af0b6d8133973132fd5b6b01cc16957a10.tar.bz2
Add closestAngle function to Qt object to help with rotation animations.
Includes test and doc.
Diffstat (limited to 'doc/src/declarative/globalobject.qdoc')
-rw-r--r--doc/src/declarative/globalobject.qdoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/src/declarative/globalobject.qdoc b/doc/src/declarative/globalobject.qdoc
index f1d440f..06f6bdc 100644
--- a/doc/src/declarative/globalobject.qdoc
+++ b/doc/src/declarative/globalobject.qdoc
@@ -114,6 +114,9 @@ This function returns a color 50% darker than \c baseColor. See QColor::lighter(
\image declarative-rect_tint.png
Tint is most useful when a subtle change is intended to be conveyed due to some event; you can then use tinting to more effectively tune the visible color.
+\section3 Qt.closestAngle(number fromAngle, number toAngle)
+This function returns an equivalent angle to toAngle, such that the difference between fromAngle and toAngle is never more than 180 degrees. This is useful when animating angles using a NumberAnimation, which does not know about equivalent angles, when you always want to take the shortest path.
+
\section3 Qt.playSound(url soundLocation)
This function plays the audio file located at \c soundLocation. Only .wav files are supported.