summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
Commit message (Collapse)AuthorAgeFilesLines
* Doc fixesBea Lam2010-04-131-4/+4
|
* Doc fixesBea Lam2010-04-121-0/+15
|
* Remove QT_VERSION checks in QMLAaron Kennedy2010-04-091-7/+0
| | | | We only support Qt 4.7 now.
* Release ListModel's worker agent on deletion.Bea Lam2010-04-092-1/+3
|
* Fix url resolution in PropertyChanges.Michael Brasser2010-04-093-9/+18
| | | | | | | | Make sure bindings in PropertyChanges resolve urls correctly. Also refactor the code so that PropertyChanges will always use the standard url resolution support provided by QDeclarativeProperty. Task-number: QTBUG-9571
* Fix compile warningsmae2010-04-081-1/+1
|
* Renamed 'source' property from SpringFollow to 'to'Leonardo Sobral Cunha2010-04-082-26/+35
|
* Add SmoothedFollow element to qmlLeonardo Sobral Cunha2010-04-084-0/+416
| | | | | | | | | | | | | | | | | | | | | The SmoothedFollow is the same as the old EaseFollow, so it's not an animation, but its main use case is to be used as a property value source to automatically follow the 'to' property, as in the example below. Rectangle { color: "green" width: 60; height: 60; SmoothedFollow on x { to: rect1.x - 5; velocity: 200 } SmoothedFollow on y { to: rect1.y - 5; velocity: 200 } } This element shares the internal implementation with SmoothedAnimation, both providing the same easing function, but with SmoothedFollow it's easier to set a start value to animate intially and then start to follow, while SmoothedAnimation is still convenient for using inside Behaviors and Transitions. Reviewed-by: Michael Brasser
* Tracking the velocity when restarting SmoothedAnimationLeonardo Sobral Cunha2010-04-081-0/+2
|
* Fix doc of qml's SmoothedAnimationLeonardo Sobral Cunha2010-04-081-9/+10
|
* Refactor in smoothedanimation, removed unneeded codeLeonardo Sobral Cunha2010-04-082-6/+1
|
* Replace "import Qt 4.6" with "import Qt 4.7"Michael Brasser2010-04-082-2/+2
|
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-04-082-14/+12
|\
| * Revert "Add QListModelInterface::modelReset() signal and emit this in"Bea Lam2010-04-082-14/+12
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 973cfce37fcdd1ce330f237eaa76930db55a73f6. Need more consideration before adding modelReset(). For example if item insertion/removal is supposed to trigger animations through added/removed signals, they won't be triggered if only the modelReset() signal is emitted. Also if we add modelReset(), it should also be implemented for ListModel to make sure it is implemented by all subclasses of QListModelInterface and to test the impact of this on the view classes.
* | Replace Text::wrap property with Text::wrapMode enumeration.Martin Jones2010-04-081-1/+1
|/ | | | wrap remains for a little while, and will produce a warning.
* Revert "Support QList<QObject*> properties"Aaron Kennedy2010-04-082-7/+1
| | | | | | | | This reverts commit 9d9161446bfad883c298d54a122e822c5e273a9c. This was a bad idea. It complicates the "property var" are not really JavaScript var problem. Some of the patch is valid, and it will be applied separately.
* Document behavior of conflicting when clauses.Michael Brasser2010-04-081-4/+14
| | | | Task-number: QTBUG-9371
* Support QList<QObject*> propertiesAaron Kennedy2010-04-082-1/+7
| | | | | | | We already supported returning QList<QObject*> from methods, but there wasn't really much that could be done with the return value. This closes the loop on QList<QObject*> support by allowing them to be properties, and used as models.
* Disallow nested elements in ListModelAaron Kennedy2010-04-071-1/+6
| | | | QTBUG-6082
* Disallow creation of attached objects Keys and KeyNavigationMartin Jones2010-04-071-33/+1
| | | | | | | Also adds qmlRegisterUncreatableType<>() to allow registration of named types that cannot be created. Task-number: QTBUG-9575
* Add QListModelInterface::modelReset() signal and emit this inBea Lam2010-04-072-12/+14
| | | | XmlListModel when all data has changed.
* Don't crash if a target isn't specified for AnchorChanges.Michael Brasser2010-04-061-0/+12
|
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-0238-107/+107
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Doc fixBea Lam2010-04-011-1/+1
|
* ModelNode::setObjectValue() must update the object cache.Bea Lam2010-04-011-0/+2
| | | | Task-number: QTBUG-9509
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-03-3012-582/+674
|\
| * Finished file rename of qdeclarative easefollow to smoothedanimationLeonardo Sobral Cunha2010-03-305-11/+11
| |
| * Change and rename qml EaseFollow to SmoothedAnimationLeonardo Sobral Cunha2010-03-3011-315/+407
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QDeclarativeSmoothedAnimation inherits from QDeclarativeNumberAnimation, as a consequence SmoothedAnimation can be used inside Behaviors and as PropertySourceValues, like any other animation. The old EaseFollow properties changed to comply with the other declarative animations ('source' changed to 'to'), so now 'to' changes are not automatically 'followed' anymore. You can achieve the following behavior by putting a SmoothedAnimation inside a Behavior of a property that is bound to another, as the following example: If you want to follow an hypothetical rect1, you should do now: Rectangle { color: "green" width: 60; height: 60; x: rect1.x - 5; y: rect1.y - 5; Behavior on x { SmoothedAnimation { velocity: 200 } } Behavior on y { SmoothedAnimation { velocity: 200 } } } SmoothedAnimation also supports animating multiple target(s)/property(ies) in the transition case. When a QDeclarativeSmoothedAnimation is restarted, it will match the QDeclarativeProperty which were being animated and transfer the corresponding track velocity to the new starting animations. QSmoothedAnimation is an uncontrolled animation, duration == -1. The duration is set as -1 to avoid consecutive animation state changes stop()/start(). This is particularly useful when using QSmoothAnimation to 'follow' another property, which is also being animated (change the 'to' property every tick). Reviewed-by: Michael Brasser
* | Make qmlpixmapcache thread shutdown cleanerMartin Jones2010-03-301-12/+6
|/ | | | | | | | | | | | | | | | | Change to Thiago's method: QThread::quit() is *not* thread-safe, so we mustn't call it from outside the QThread that the QThread holds. Unlike other QObjects, this method and some others must not be called from the thread they have affinity to. So add a hack to call it in the auxiliary thread. Do that by connecting a dummy QObject's destroyed() signal to the quit() slot in a DirectConnection, then move the object to the thread. When we call deleteLater(), this will cause the thread's event loop to delete the object, which in turn calls quit() in the actual thread. Reviewed-by: Thiago Macieira
* Fix viewer resizing on reload and File->openMartin Jones2010-03-301-0/+1
| | | | Task-number: QTBUG-9325
* Allow just one dimension to be set, the other scaled accordinglyWarwick Allison2010-03-291-3/+11
| | | | Task-number: QTBUG-8984
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-03-296-25/+36
|\
| * Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Warwick Allison2010-03-292-6/+9
| |\
| | * Fix crash in QDeclarativePropertyMap.Michael Brasser2010-03-292-6/+9
| | | | | | | | | | | | Task-number: QTBUG-9439
| * | Remove total wrongness.Warwick Allison2010-03-291-1/+0
| |/ | | | | | | Base URL of engine is not what some people think it is.
| * Fix memory leak and clean up deletion.Bea Lam2010-03-291-8/+5
| |
| * Don't emit QDeclarativePropertyMap::valueChanged() before the value hasMichael Brasser2010-03-294-10/+22
| | | | | | | | | | | | changed. Task-number: QTBUG-9386
* | Make sure the image reader thread is shutdown properlyMartin Jones2010-03-291-2/+14
|/ | | | | Prevents deadlock on shutdown for very shortlived runs, e.g. autotests
* Cleanup.Michael Brasser2010-03-282-30/+8
|
* Don't set status to Ready until model has been created (currently thisBea Lam2010-03-282-53/+97
| | | | | | | | | | is set as soon as XML data is downloaded, so there is no notification when model is actually ready to be used). This also fixes data() to not crash if it is called before the model is ready. Task-number: QTBUG-7835
* Source resizing for QDeclarativeImageProvider too.Warwick Allison2010-03-281-1/+3
| | | | (fixes test too)
* Adds a way to clear the state list property in QDeclarativeStateGroupKai Koehne2010-03-261-1/+13
| | | | | | | | | Needed by QmlDesigner, which needs to be able to remove states at runtime. Done my Marco Bubke Reviewed-by: Michael Brasser
* Use QThread IdlePriority rather than linux platform code.Martin Jones2010-03-261-14/+1
| | | | Task-number: QTBUG-9032
* Simple case, no size returned.Warwick Allison2010-03-261-1/+1
| | | | Fixes Particles plugin.
* Control of image rendered size (esp. SVG).Warwick Allison2010-03-262-60/+121
| | | | | | | Add Translate transform. Image::sourceWidth and Image::sourceHeight read/write properties. Task-number: QTBUG-8984
* Remove some Script {} docsMartin Jones2010-03-251-7/+5
|
* Fix where data() is called before xml is loaded. Also add status tests.Bea Lam2010-03-251-2/+4
|
* Clean upBea Lam2010-03-251-20/+0
|
* Remove int parameter from ListModel countChanged() to be consistentBea Lam2010-03-253-5/+5
| | | | with other classes with countChanged() signals.
* Build Fix and port to new width and height propertiesAlexis Menard2010-03-251-2/+2
| | | | Reviewed-by:Martin Jones