summaryrefslogtreecommitdiffstats
path: root/src/declarative/util/qdeclarativeutilmodule.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Register Qt 4.7 import on-demand, instead of at startup.Robin Burchell2012-10-041-3/+8
| | | | | | | | | | | | | | | | | | This is a slightly less awkward approach (keeps backwards-compatibility) while speeding up startup for applications that don't use the old import path. Also prints a warning to let developers know they should migrate their code when possible. Completely disabling the Qt 4.7 import is still possible by setting QT_NO_IMPORT_QT47_QML. This takes around 10-15ms off a very simple "hello world" on my macbook. (backport of qtquick1/2a3e9eb0ba00acf30b9cc40f7e2e4347726fb6b4) Change-Id: I6960e7c28bb4f153d793802b978c1944977e8ed4 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-291-24/+24
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I280c0a575987d1770e354b4948f1d4d767d711ea Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Register less types for QtDeclarative/QCoreApplicationKevin Ottens2012-08-201-64/+68
| | | | | | | | | | | | | | | | | | In Qt5 QtQml and QtQuick are separated so you have control on the amount of facilities you need. It is not the case in Qt4 unfortunately so you always pay the price of those registration. To overcome that, this patch avoids quite some of the type registration when we detect we're not running a QApplication. In such case all the GUI related QtQuick 1 runtime is not usable anyway. We keep around only a handful of convenience like Timer, Connection, Component, etc. Change-Id: Idf5aa935795a224ceb5bc66015282fd094b5686c Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Update contact information in license headers.Sergio Ahumada2012-08-011-2/+2
| | | | | | | | | | | | | - Replace Nokia contact email address with Qt Project website. - Remove "All rights reserved" line from license headers. As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: Ie7ba62011752fcb149b99b26317c54f2a0cfa931 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update year in Nokia copyright messages.Jason McDonald2012-01-111-1/+1
| | | | | | | | | Simple search and replace. This commit doesn't touch 3rd-party files, nor translations (where the change is not so simple and will be handled in a separate commit). Change-Id: I4e48513b8078a44a8cd272326685b25338890148 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update licenseheader text in source files for qt4.8Jyri Tahtela2011-05-131-17/+17
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Fix QtDeclarative compilation warningsJoona Petrell2011-01-181-1/+1
| | | | | Task-number: Reviewed-by: Martin Jones
* Introduce Qt.application.active propertyJoona Petrell2011-01-071-0/+3
| | | | | | | Replaces qmlviewer's runtime.activeWindow property. Task-number: QTBUG-13351 Reviewed-by: Martin Jones
* Register QtQuick 1.0 module.Aaron Kennedy2010-09-291-4/+50
| | | | | | | Qt 4.7 is still supported, but deprecated. Reviewed-by: Martin Jones Task-number: QTBUG-13799
* Follow -> Behaviormae2010-07-081-4/+0
| | | | Replace the usages of Follows with Behaviors, update docs.
* Added QDeclarativeSpringAnimationmae2010-07-071-0/+2
| | | | | | | | | | | | | The QDeclarativeSpringAnimation is a replacement for QDeclarativeSpringFollow. The idea is to remove the Follows quickly. Follows used to have an inSync property. In order to provide an alternative mechanism, the commit also fixes the running property for animations which are controlled by a behavior. Previously running would always return false and never change. Now running does change and indicates that the animation is running indeed.
* Fix remaining 4.6 type registrations (to 4.7).Warwick Allison2010-04-271-2/+2
| | | | | | Missed/cross-paths with a29627231a02ebf98645675acbd353618d1109d4. Task-number: QTBUG-10081
* Fix versioning of Qt Declarative's in-built typesAlan Alpert2010-04-211-35/+35
| | | | | | Since we aren't releasing for 4.6, all types are new in 4.7. Task-number: QTBUG-10081
* CompileWarwick Allison2010-04-201-2/+0
|
* Improve error messages, especially on embedded.Warwick Allison2010-04-201-8/+14
| | | | | | With embedded, it is often the case that some QT_NO_* features are turned off (eg. QT_NO_XMLPATTERNS), which in turn leads to QML types not being available.
* Add SmoothedFollow element to qmlLeonardo Sobral Cunha2010-04-081-0/+2
| | | | | | | | | | | | | | | | | | | | | 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
* 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
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-27/+27
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Finished file rename of qdeclarative easefollow to smoothedanimationLeonardo Sobral Cunha2010-03-301-1/+1
|
* Change and rename qml EaseFollow to SmoothedAnimationLeonardo Sobral Cunha2010-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update AnchorChanges to use more natural form for setting anchors.Michael Brasser2010-03-251-0/+1
| | | | | | | Instead of specifying left, right, etc directly, we keep the regular syntax and specify anchors.left, anchors.right, etc. Also get rid of the hacky "reset" string property and use undefined to reset (like PropertyChanges).
* Qt.Infinite -> Animation.InfiniteMichael Brasser2010-03-251-1/+34
| | | | | Too misleading to have on the Qt object, as it only means infinite for animation loops.
* Remove ParentAction.Michael Brasser2010-03-231-1/+0
| | | | It has been replaced with ParentAnimation.
* Remove dead performance measurement code from QMLAaron Kennedy2010-03-221-2/+0
|
* Add AnchorAnimation for animating AnchorChanges.Michael Brasser2010-03-111-0/+1
| | | | Task-number: QT-2825
* Document - and use - the qmlRegisterXXX template functionsmae2010-03-101-36/+39
| | | | This commit removes the obsolete QML_REGISTER_TYPE macros.
* Remove NumberFormatter and DateTimeFormatter.Michael Brasser2010-03-051-6/+0
| | | | | | | Functions have been added to QML's global Qt object for date/time formatting. Number formatting will not be supported for 4.7. Task-number: QT-2821
* compile fix for WinCEMaurice Kalinowski2010-03-011-0/+2
| | | | | | do not include headers of disabled modules Reviewed-by: Paul Olav Tvete
* Rename files to follow class name.Warwick Allison2010-02-261-1/+1
| | | | Task-number: QT-2822
* Change Connection syntax as per QT-2822.Warwick Allison2010-02-261-1/+2
|
* Add ParentAnimation.Michael Brasser2010-02-261-0/+1
| | | | | | | ParentAnimation will replace ParentAction. It provides two advantages: * It will animate correctly when reversed. * It allows reparenting via another item, which is useful in the presence of clips, for example.
* Fix building without the XmlPatterns ModuleAlan Alpert2010-02-241-0/+2
|
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-241-0/+118
QDeclarativeXXX.