summaryrefslogtreecommitdiffstats
path: root/src/declarative
Commit message (Collapse)AuthorAgeFilesLines
* Start adding convenience functions for value types.Michael Brasser2009-08-272-3/+68
| | | | | Allows you to write things like "geometry: Qt.rect(0,0,100,100)" and "color: Qt.hsla(.7,.5,.2)"
* Merge branch 'kinetic-declarativeui' of ↵Michael Brasser2009-08-277-45/+24
|\ | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * Merge branch 'kinetic-declarativeui' of ↵Aaron Kennedy2009-08-2719-147/+157
| |\ | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * | Implement Focus Scope support in GraphicsViewAaron Kennedy2009-08-277-45/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Focus Scopes are an additional focus paradigm, designed to be more suitable for use by declarative UI. With focus scopes, graphics view continues to have a single focused item - this is the single item to which key events are *actually* delivered. To simplify the description that follows, we will say that this element has "global focus". Focus scopes partitions focus into a heirarchy. Each focus scope may have one sub-focused item, which may itself be another focus scope. The sub-focused item is said to be have "scope focus" or its ancestor focus scope. Consequently, any given QGraphicsItem may be globally focused, scope focused (which means it is focused within its ancestor focus scope) or both. A focus scope corresponds to a QGraphicsItem with the ItemIsFocusScope flag set. As graphics view doesn't have a single root item, a "virtual" focus scope is modeled as being the ancestor of all the root items. With focus scopes, when QGraphicsItem::setFocus() is called, the item's ancestors are searched until a focus scope is found (remembering the "virtual" root focus scope is used if there is no *actual* ancestor scope). The item is set as the sub-focused item of the focus scope (becoming focus scoped) and any existing sub-focused item of that focus scope has scope focus removed from it. The item that receives global focus is found by beginning at the "virtual" root focus scope and recursively decending into each item that is scope focused until a leaf (non-focus scope) item is reached. The implementation takes shortcuts here to be slightly more optimal, but the end result should be the same as though this abstract algorithm was evaluated each time. Two manual examples of focus scope are found under examples/declarative/focusscope
* | | Add internal note.Michael Brasser2009-08-271-1/+1
| |/ |/|
* | Merge branch 'kinetic-declarativeui' of ↵Michael Brasser2009-08-2715-82/+70
|\ \ | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * \ Merge branch 'kinetic-declarativeui' of ↵Martin Jones2009-08-274-64/+51
| |\ \ | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * \ \ Merge branch 'kinetic-declarativeui' of ↵Martin Jones2009-08-2751-134/+189
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui Conflicts: doc/src/declarative/anchor-layout.qdoc
| * | | Make QmlPropertyValueSource an interface.Martin Jones2009-08-2715-82/+70
| | | | | | | | | | | | | | | | 1st step in animation class heirarchy redesign.
* | | | Support using a QAbstractItemModel with Repeater.Michael Brasser2009-08-271-1/+36
| |_|/ |/| |
* | | Repeater API updates.Michael Brasser2009-08-274-64/+51
| |/ |/|
* | Merge branch 'kinetic-declarativeui' of ↵Michael Brasser2009-08-2713-35/+23
|\ \ | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * \ Merge branch 'kinetic-declarativeui' of ↵Yann Bodson2009-08-2636-85/+121
| |\ \ | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * \ \ Merge branch 'kinetic-declarativeui' of ↵Yann Bodson2009-08-262-1/+25
| |\ \ \ | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * | | | doc fixesYann Bodson2009-08-261-19/+7
| | | | |
| * | | | Use Q_SLOTS and Q_SIGNALS.Yann Bodson2009-08-2613-16/+16
| | | | |
* | | | | Fix potential crash on deletion.Michael Brasser2009-08-271-5/+6
| |_|/ / |/| | | | | | | | | | | If an item's parent is being destructed, no need to update anchors.
* | | | Fix unbalanced calls to QFxPixmapCache::get && cancelGetKai Koehne2009-08-265-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explicitly track whether there is a QFxPixmapCache request pending, and only call QFxPixmapCache::cancelGet if this is the case. This should fix an issue in Bauhaus where multiple instances are loading the same image, and one instance calling cancelGet without ever having called get before is messing up the QFxPixmapCache request counting.
* | | | Merge branch 'kinetic-declarativeui' of ↵Martin Jones2009-08-2634-59/+76
|\ \ \ \ | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * \ \ \ Merge branch 'kinetic-declarativeui' of ↵Michael Brasser2009-08-267-9/+39
| |\ \ \ \ | | | |/ / | | |/| | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | * | | Fix and test for multiple-access-to-same-URLWarwick Allison2009-08-262-1/+25
| | |/ / | | | | | | | | | | | | Not reproduced (except by test), but may fix a Bauhaus issue.
| | * | Fix handling of empty strings for URLsWarwick Allison2009-08-264-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | QUrl resolves empty to base, which is not desirable. Preserve emptiness of QUrl. Handle use of empty QUrl with WebView (WebKit doesn't handle empty URLs well either).
| | * | Merge branch 'kinetic-declarativeui' of ↵Warwick Allison2009-08-254-7/+106
| | |\ \ | | | |/ | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | * | Avoid shadowing QWebPage::view().Warwick Allison2009-08-252-4/+4
| | | |
| * | | Delete anchors when item is deleted.Michael Brasser2009-08-261-0/+1
| | | |
| * | | Some script engine cleanup.Michael Brasser2009-08-261-16/+1
| | | |
| * | | Fix compile after merge from 4.6.Michael Brasser2009-08-2526-28/+29
| | |/ | |/|
| * | Merge branch 'kinetic-declarativeui' of ↵Michael Brasser2009-08-2523-187/+510
| |\ \ | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * | | Only need to mess with the scope chain when evaluating.Michael Brasser2009-08-251-6/+6
| | | |
* | | | Proposed changes following reviewMartin Jones2009-08-2610-30/+54
| |/ / |/| |
* | | Merge branch 'kinetic-declarativeui' of ↵Kai Koehne2009-08-252-0/+99
|\ \ \ | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| * | | Reading and writing of QVariant for QmlValueTypeThomas Hartmann2009-08-252-0/+99
| | |/ | |/| | | | | | | | | | | | | This is very useful for Bauhaus and avoids code duplication Reviewed-by: Aaron Kennedy
* | | Don't crash for QFxWebView::setUrl(QUrl)Kai Koehne2009-08-251-1/+1
|/ /
* | Merge branch 'kinetic-declarativeui' of ↵Warwick Allison2009-08-2513-50/+335
|\ \ | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui Conflicts: src/declarative/qml/qmlcompiler.cpp src/declarative/qml/qmlengine_p.h
| * \ Merge branch 'kinetic-declarativeui' of ↵Kai Koehne2009-08-2510-48/+329
| |\ \ | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | * \ Merge branch 'kinetic-declarativeui' of ↵Aaron Kennedy2009-08-252-4/+4
| | |\ \ | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | | * \ Merge branch 'kinetic-declarativeui' of ↵Yann Bodson2009-08-255-39/+252
| | | |\ \ | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | | * \ \ Merge branch 'kinetic-declarativeui' of ↵Yann Bodson2009-08-252-7/+13
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | | * \ \ \ Merge branch 'kinetic-declarativeui' of ↵Yann Bodson2009-08-2413-202/+220
| | | |\ \ \ \ | | | | | |_|/ | | | | |/| | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | | * | | | Merge branch 'kinetic-declarativeui' of ↵Yann Bodson2009-08-249-93/+133
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | | * | | | | Use 'extend' for now. 'extends' is a JavaScript reserved wordsYann Bodson2009-08-241-3/+3
| | | | | | | |
| | | * | | | | Add missing CONSTANT to view property.Yann Bodson2009-08-241-1/+1
| | | | | | | |
| | * | | | | | Add support for prefixed attached properties at compile timeAaron Kennedy2009-08-253-9/+68
| | | |_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | To reduce possible confusion, an id used within a component may not conflict with namespace prefixes.
| | * | | | | Implement QFxKeyNavigationAttached classAaron Kennedy2009-08-253-39/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Documentation is missing until we fix up focus behaviour
| | * | | | | Remove the QmlBinding_Id from QmlContext on destructionAaron Kennedy2009-08-252-2/+15
| | | | | | |
| | * | | | | Merge branch 'kinetic-declarativeui' of ↵Aaron Kennedy2009-08-255-153/+22
| | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | | * | | | Remove unnecessary KeysAttached static mapMartin Jones2009-08-252-7/+13
| | | | |_|/ | | | |/| |
| | | * | | Merge branch 'kinetic-declarativeui' of ↵Martin Jones2009-08-248-166/+167
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
| | | * | | | Fix list startPosition calculation.Martin Jones2009-08-241-2/+5
| | | | | | |
| | * | | | | Add (non-functional) KeyNavigation typeAaron Kennedy2009-08-251-1/+98
| | | | | | |