summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxpathview_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement Focus Scope support in GraphicsViewAaron Kennedy2009-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* PathView needs to filter Left mouse button.Martin Jones2009-08-071-1/+1
|
* Rework VisualItemModel into VisualItemModel & VisualDataModelMartin Jones2009-08-031-2/+2
| | | | | | QFXVisualModel provides a base class for visual models. QFxVisualDataModel provides a visual model for Qt item view models. QFxVisualItemModel provides a model of QFxItems.
* Get rid of QFxItem::options.Michael Brasser2009-07-311-1/+2
| | | | They can all be set directly with QGraphicsItem flags or functions.
* More QFxItem cleanup.Michael Brasser2009-07-301-1/+1
|
* remove itemParent() and related.Lars Knoll2009-07-291-1/+1
| | | | | Consistently use parentItem() as it is consistent with the naming in QGraphicsItem.
* Fix ChildMouseFilterMichael Brasser2009-07-101-1/+1
|
* Merge branch 'kinetic-declarativeui' of ↵Michael Brasser2009-07-101-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui-gv Conflicts: examples/itemviews/frozencolumn/main.cpp src/declarative/canvas/qsimplecanvas.cpp src/declarative/canvas/qsimplecanvas_p.h src/declarative/canvas/qsimplecanvasitem.h src/declarative/extra/qfxparticles.cpp src/declarative/fx/fx.pri src/declarative/fx/qfxblurfilter.h src/declarative/fx/qfxcontentwrapper.cpp src/declarative/fx/qfxflickable.cpp src/declarative/fx/qfxfocuspanel.h src/declarative/fx/qfxfocusrealm.h src/declarative/fx/qfxhighlightfilter.cpp src/declarative/fx/qfxhighlightfilter.h src/declarative/fx/qfximage.cpp src/declarative/fx/qfxitem.cpp src/declarative/fx/qfxitem.h src/declarative/fx/qfxrect.cpp src/declarative/fx/qfxreflectionfilter.h src/declarative/fx/qfxshadowfilter.cpp src/declarative/fx/qfxshadowfilter.h src/declarative/fx/qfxtext.cpp src/declarative/fx/qfxtext.h src/declarative/fx/qfxtextedit.cpp src/declarative/opengl/glbasicshaders.h src/declarative/test/qfxtestengine.cpp src/declarative/test/qfxtestengine.h src/declarative/test/qfxtestobjects.cpp src/declarative/test/qfxtestobjects.h src/declarative/test/qfxtestview.h src/declarative/util/qfxglobal.h src/declarative/util/qfxview.cpp src/gui/graphicsview/qgraphicsitem_p.h tools/qmlviewer/qmlviewer.cpp
| * Move timeline class to util and make private.Michael Brasser2009-07-021-1/+0
| |
* | Remove simple canvasAaron Kennedy2009-06-231-1/+1
|/
* Make VisualItemModel with packages work properly.Martin Jones2009-05-201-0/+3
| | | | | The views can all now deal with items that they have not requested appearing, and will lay them out appropriately.
* Get view to view transitions working properly... for PathView.Martin Jones2009-05-071-3/+18
|
* Rename GfxValue to QmlTimeLineValue.Michael Brasser2009-04-271-1/+2
|
* Rename GfxEvent to QmlTimeLineEvent.Michael Brasser2009-04-271-2/+2
|
* Initial import of kinetic-dui branch from the old kineticMichael Brasser2009-04-221-0/+132