summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeitem_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Include dynamic parenting use cases in layout mirroring autotestsJoona Petrell2011-03-081-1/+2
| | | | | | | Task-number: QTBUG-17280 Reviewed-by: Martin Jones Change-Id: Ibbbd2da44d5826b6e499b731eda66b2016bade85
* Add LayoutMirroring attached property for mirroring QML layoutsJoona Petrell2011-03-011-3/+50
| | | | | | Task-number: QTBUG-17280 Reviewed-by: Martin Jones Change-Id: I34a623b49ce0fd5c05ae7a7ea5d0437c107b8a9b
* Expose implicitWidth and implicitHeight properties of Item.Martin Jones2011-01-241-3/+8
| | | | | | | | Overridden as readonly for elements that have an inherent implicit size such as Text, TextEdit, TextInput, positioners, Loader. Task-number: QTBUG-14957 Reviewed-by: Michael Brasser
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-191-1/+1
|\
| * Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | | | | | Reviewed-by: Trust Me
* | Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2010-12-131-3/+7
|\ \ | |/
| * Don't emit activeFocusChanged() unless the active focus actually changedTor Arne Vestbø2010-12-071-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We would previously call subFocusItemChanged(0) on the item as part of clearing the subfocus, even if the item in question would recieve a new subfocus item as part of setting the new subfocus. This resulted in the declarative item emitting activeFocusChanged(false) and then activeFocusChanged(true), which was affecting any animation or state bound to the activeFocus property of the item. We now stop clearing the subfocus when encountering an item that we know will get subfocus during the set-subfocus pass. We then set subfocus all the way to the root item, since the subfocus item itself might change. The effect of this is that the declarative item will only get one call to subFocusItemChanged(), passing the new subfocus item, instead of two. This means the declarative item can keep track of wherther ot not it had a subfocus item previously, and only emit activeFocusChanged() when the active focus goes from true to false or false to true. Task-number: QTBUG-15615 Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
* | KeyNavigation skips disabled or invisible itemsChristopher Ham2010-12-101-0/+1
|/ | | | | | | | | When using KeyNavigation, if the "visible" or "enabled" property of the item set in the KeyNavigation handler is false, an attempt will be made to skip this item and setFocus to the following item. Task-number: QTBUG-15862 Reviewed-by: Martin Jones
* Fix integer overflow in QDeclarativeItemPrivate::origin enumerationJoona Petrell2010-11-301-1/+1
| | | | | Task-number: QTBUG-15694 Reviewed-by: Martin Jones
* Completing the interface for children/data/resourcesThomas Hartmann2010-09-141-0/+4
| | | | | | | | This patch makes the handling of properties like children and data easier in Bauhaus. Especially in the case of property alias Reviewed-by: Aaron Kennedy
* Remove use of shared NOTIFY signalsMartin Jones2010-07-291-7/+12
| | | | | | | | | Sharing a NOTIFY signal can cause binding loop warnings with no apparent cause. Task-number: QTBUG-12333 Reviewed-by: Aaron Kennedy Reviewed-by: Michael Brasser
* QML focus API updates.Michael Brasser2010-07-211-1/+8
| | | | | | | | | The wantsFocus property has been renamed to activeFocus, to better reflect its value. Reading and writing the focus property is also now consistent -- this property represents focus within a scope. Other small changes were made to keep things consistent with the new naming. Reviewed-by: Aaron Kennedy
* Private variable cleanup.Michael Brasser2010-07-131-9/+7
|
* wantsFocus should be based on FocusScope chain, not parent chain.Michael Brasser2010-07-131-1/+3
| | | | | | | | Ancestors of the item with focus should only report wantsFocus as true when they are a FocusScope or a top-level item. Reviewed-by: Aaron Kennedy Reviewed-by: Yann Bodson
* Fix bug with childrenRect resizing on startup.Michael Brasser2010-06-151-3/+4
| | | | | | This also optimizes the implementation. Task-number: QTBUG-11383
* Use QElapsedTimer rather than QTime::elapsed()Martin Jones2010-05-281-6/+5
|
* Add a "priority" property to Keys and KeyNavigationMartin Jones2010-05-141-9/+28
| | | | | | Allows intercepting keys before or after normal item key processing. Task-number: QTBUG-10467
* Update childrenRect when children are added or removed.Michael Brasser2010-05-041-1/+4
| | | | Task-number: QT-714
* Optimize childrenRect.Michael Brasser2010-05-041-5/+10
|
* Mark some properties in QDeclarativeItem as private properties.Alexis Menard2010-04-291-1/+22
| | | | | | | QDeclarativeItem will be public, all properties that are relaying on private types must be private too. Reviewed-by:akennedy
* Avoid calling QGraphicsItem::setTransformOriginPoint() until neededMartin Jones2010-04-161-1/+5
| | | | | Task-number: QTBUG-9772 Reviewed-by: Alexis
* Bring support of anchors in QML for QGraphicsWidget derived classes.Alexis Menard2010-04-141-1/+2
| | | | | | | | | | | This commit add a extension object to bring the anchors property for a QGraphicsWidget. The actual implement uses a separate object for storing the anchor pointer. In the future it would be nice if the extension object is the anchor itself. Also there are two connects extra for QGraphicsWidget one can perhaps disappear with a later commit. Only baseline case is not supported because QGraphicsWidget don't have any concept of baseline. Reviewed-by:akennedy
* Fix parenting after 6f88388db4e8e202780d789e66664ff824691948.Michael Brasser2010-03-301-2/+4
|
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt into 4.7Martin Jones2010-03-251-3/+3
|\ | | | | | | | | Conflicts: src/declarative/graphicsitems/qdeclarativeitem.cpp
| * Fix compilation with WINSCW: #include doesn't find files in the same dirThiago Macieira2010-03-201-3/+3
| |
* | Optimize QML "parent" property accessAaron Kennedy2010-03-251-0/+6
| | | | | | | | | | For properties that are as important as "parent", QML cannot afford the overhead of a signal/slot connection.
* | Remove the children property from QDeclarativeItem.Alexis Menard2010-03-251-10/+15
|/ | | | | | | | | This commit remove the children property from QDeclarativeItem because it's now in QGraphicsObject. This commit also get rid of width and height properties to use the one in QGraphicsObject. Task-number:QT-2757 Reviewed-by:akennedy
* Probably fix compile on windowsAlan Alpert2010-03-091-1/+1
|
* Probably fix compileAlan Alpert2010-03-091-1/+1
| | | | should fix the current failure when building on windows.
* Make QDeclarativeItem NOTIFY signals canonicalJoona Petrell2010-03-091-2/+4
| | | | | Task-number: QTBUG-7193 Reviewed-by: akennedy
* Add support for tab and backtab in KeyNavigationYann Bodson2010-03-041-1/+12
| | | | Task-number: QT-3046
* Fixed private header include style to work when headers are installed.Rohan McGovern2010-03-011-2/+2
| | | | | | | | | | Private headers should include other private headers by: #include <private/qfoo_p.h> Using a relative path works during the build, but does not work when building other projects which attempt to use the installed private headers (e.g. unit tests for private classes).
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-241-0/+471
QDeclarativeXXX.