summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativeflickable.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers to release version.Jason McDonald2010-10-181-13/+13
|
* Use setParentItem() instead of setParentItemHelper if componentComplete is trueMarco Bubke2010-10-011-5/+19
| | | | | | | | | | | This ensures that if the component has already been completed, itemChange() is called. This is required to modify QDeclarativePositions in the visual editor, while keeping a legal state. Without this patch notifications are missing and the Positioner keeps track of already deleted children. This resulted in a crash. Reviewed-by: Thomas Hartmann (cherry picked from commit 1f8bb573f06234a3d13fb57de5eb644824d5024f)
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into ↵Qt Continuous Integration System2010-09-161-2/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2: Fixed regression in QPixmap::size() for null pixmaps. Make test less sensitive to platform specifics Doc: Further QML improvements. Doc: Minor improvements to QML-related documentation. The test livelock of QTimer is now expected to work Make sure mapSelectionFromSource does not return a selection with invalid ranges. QEventDispatcherUnix: do not process too many timer if other events need to be processed first Doc: Continued work on the QML documentation. Doc: More work on the QML documentation. Doc: More work on the declarative API documentation. Doc: Some editing and tidying up. Doc: Added a missing file. Doc: Fixed text in license headers.
| * Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7David Boddie2010-09-151-3/+3
| |\
| * | Doc: More work on the declarative API documentation.David Boddie2010-09-131-2/+3
| | |
* | | Fix bug in 34b805d66c09fb324d1b6a7bcf259e8743ef3894Thomas Hartmann2010-09-151-3/+4
| | | | | | | | | | | | | | | | | | | | | This time the implementation of clear is correct Reviewed-by: Marco Bubke
* | | Completing the interface for children/data/resourcesThomas Hartmann2010-09-141-1/+53
| |/ |/| | | | | | | | | | | | | 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
* | Ensure flickable velocity is updated when view is moved by setCurrentIndexMartin Jones2010-09-131-3/+3
|/ | | | Task-number: QTBUG-13543
* Doc: More work on the QML documentation.David Boddie2010-09-071-21/+35
|
* Flickable ensure internal pressed state is cleared when mouse is released.Martin Jones2010-09-011-0/+1
| | | | | | | We did this when handling the mouse events ourselves, but if e.g. a mousearea stole the mouse, we didn't reset the pressed flag. Task-number: QTBUG-12343
* Ensure Flickable visibleArea is updated when view height changesMartin Jones2010-08-311-0/+4
| | | | Task-number: QTBUG-13095
* Avoid Flickable view jumping when drag threashold is exceeded.Martin Jones2010-08-261-2/+8
| | | | Task-number: QTBUG-13176
* Fix poor flicking behavior with slower flicks.Martin Jones2010-08-251-15/+7
| | | | | | | | | | | We had a very low minimum velocity flick threshold, but upon deciding to flick we increased that velocity considerably. This resulted in a slow dragging movement generating a fast flick. Now we just have a higher minimum flick velocity threshold, and the correct velocity is used. Task-number: QTBUG-13078 Reviewed-by: Michael Brasser
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integrationQt Continuous Integration System2010-08-161-1/+1
|\ | | | | | | | | | | | | | | | | | | * '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Add missing auto test files. Fix game could not be restarted Handle QGraphicsWidgets in Flickable More positioners with QGraphicsWidgets fixes. Make positioners work with QGraphicsWidgets also emit countChanged where appropriate in Repeater
| * Handle QGraphicsWidgets in FlickableMartin Jones2010-08-161-1/+1
| | | | | | | | | | Task-number: QTBUG-12830 Reviewed-by: Michael Brasser
* | qdoc: Reorganized the QML elements table to be a dictionary...Martin Smith2010-08-161-0/+2
|/ | | | ...and a set of functional group pages.
* Fix Flickable.StopAtBounds behavior when content size < flickable sizeMartin Jones2010-08-031-10/+16
| | | | | | | | Clip the content position to the beginning rather than the end, if both apply. Task-number: QTBUG-12573 Reviewed-by: Michael Brasser
* Don't emit movementEnded if mouse press is a continuation of a flick.Martin Jones2010-07-291-15/+17
| | | | | | | | | | When the mouse is pressed the flick is stopped, but this may be a continuation of a previous flick, in which case we don't want to emit movementEnded since this can cause stutters in animations triggered by movementEnded, for example. Task-number: QTBUG-12492 Reviewed-by: Warwick Allison
* Allow MouseArea dragging to filter mouse events from descendantsMartin Jones2010-07-221-1/+1
| | | | | | | | This allows dragging a MouseArea that contains a clickable MouseArea, for example. Task-number: QTBUG-12323 Reviewed-by: Michael Brasser
* docsBea Lam2010-07-071-1/+1
|
* Remove deprecated Flickable.flickDirectionMartin Jones2010-07-071-12/+0
|
* Don't access uninitialized value.Martin Jones2010-06-301-10/+9
| | | | Viewport can move before any mouse press.
* Expose the Flickable's internal contentItemMartin Jones2010-06-241-17/+35
| | | | | | | | So that dynamically created items can be parented to the contentItem and be flicked with the rest of the content. Task-number: QTBUG-11674 Reviewed-by: Aaron Kennedy
* Fix event forwarding in QDeclarativeFlickable.Alexis Menard2010-06-171-3/+18
| | | | | | | | | | | | | | | | | | | The flickable element filters all events of its children and store the press event to replay it if there is a release or if the scrolling didn't happen. The issue was that the event and the item stored to "replay" the press event might not be the item that is interessted by the event. Let say you have a translucent overlay on top of an other item. Previously all events will be send to the overlay and not to the item underneath. This happen beause QGraphicsView propagate events from top to bottom (stacking order) so the overlay will be the first child filtered by the flickable. So we need to repropagate the event through the normal process to the event delivery mechanism of QGraphicsView will work properly. Also we need to unset the mouse grabber since after the first press it might be set to a wrong item. We also need to replay the release by ourself on the new mouse grabber but only if we need to send again the press. Reviewed-by:Yann Bodson
* Stopping a flick resulted in the next click being consumed.Martin Jones2010-06-161-0/+1
| | | | Task-number: QTBUG-11390
* Doc improvements, including snippet fixes, linking to examples, makingBea Lam2010-06-111-3/+5
| | | | docs more consistent
* Use QElapsedTimer rather than QTime::elapsed()Martin Jones2010-05-281-5/+6
|
* Remove deprecated Flickable::overshoot property.Martin Jones2010-05-261-19/+0
|
* Fixes for docs, example codeBea Lam2010-05-201-1/+1
|
* Restructure the examples. They are now organized into variousBea Lam2010-05-161-1/+1
| | | | | | subdirectories to make it easier to locate examples for certain features (e.g. animation) and to distinguish between different types of examples (e.g. very basic examples vs complex demo-like examples).
* Follow-up on Flickable changes.Yann Bodson2010-05-131-14/+66
| | | | | | | - flicking and moving properties will not be removed - onMovement* and onFlick* signals are back in Reviewed-by: Martin Jones
* Flickable small API changes.Yann Bodson2010-05-121-91/+122
| | | | | | | | | | - Split moving into movingHorizontally anf movingVertically - Split flicking into flickingHorizontally and flickingVertically - Rename flickDirection to flickableDirection - onMovementStarted, onMovementEnded, onFlickStarted and onFlickEnded signals removed Task-number: QTBUG-10572 Reviewed-by: Martin Jones
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-05-051-7/+7
|\
| * docWarwick Allison2010-05-051-7/+7
| | | | | | | | Task-number: QTBUG-10386
* | Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-05-041-22/+28
|\ \ | |/
| * Doc improvementsBea Lam2010-05-041-22/+28
| |
* | Ensure flick endpoint is recalculated for variable height lists.Martin Jones2010-05-041-2/+2
|/
* Replace Flickable overshoot property with boundsBehaviorMartin Jones2010-04-221-15/+47
| | | | Task-number: QTBUG-9993
* Fix highlight position with StrictlyEnforceRange and range greater than item ↵Martin Jones2010-04-211-2/+2
| | | | | | size. Task-number: QTBUG-9901
* Fiddle with the overshoot correction curve.Martin Jones2010-04-191-2/+2
|
* Always allow view position to be fixed.Martin Jones2010-04-191-8/+10
| | | | | | | | | | We used to avoid doing fixup in a direction we were not flicking. This was pointless, and caused bugs when the view transitioned from flickable to not flickable, e.g. by content size change. Fixup following content size is also no longer animated. This can be acheived using a behavoir, for example. Task-number: QTBUG-9961
* emit onMovementStarted/Ended/Changed on wheel eventsMartin Jones2010-04-141-0/+4
| | | | Task-number: QTBUG-9804
* Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-2/+2
| | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* Fix Flickable::visibleArea.xPosition, Flickable::visibleArea.yPosition docsMartin Jones2010-04-011-2/+4
| | | | Task-number: QTBUG-9499
* Fix parenting after 6f88388db4e8e202780d789e66664ff824691948.Michael Brasser2010-03-301-1/+2
|
* Port Flickable and Flipable to support QGraphicsObject.Alexis Menard2010-03-251-2/+2
| | | | | | Replacing QDeclarativeItem* members by QGraphicsObject*. Build fix too. Reviewed-by:akennedy
* Schedule view relayout after itemsInserted/Removed()Martin Jones2010-03-101-0/+3
| | | | | So that they handle model changes involving multiple insertion and deletion without entering the event loop.
* Remove code dupliation in fixupX/Y(), flickX/Y()Martin Jones2010-03-081-204/+181
| | | | Also some minor perf improvements by avoiding signal/slot connection
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2010-03-051-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: (72 commits) Doc: Enabled the context menu in the spreadsheet demo. Updated URLs. Doc: Applied suggestion for an improvement to the foreach documentation. Doc: Added a note about the lack of standard file copy/paste on X11. Doc: Fixed the row number for a widget in two parts of the tutorial. Doc: Fixed typos. Reduce compiling time of QScriptValue autotest suite on Windows. Optimize QScriptValue autotest generator. Set database write behavior to synchronous=OFF and increase page cache. doc: Fixed some qdoc errors. Setting ImhHiddenText for NoEcho line edits is not 100% correct, but still way better than fully visible text. Allow building documentation without all of Qt Added a documentation for the new enum value in gesture api. Remove the OBJECTS_DIR variable assignment from some projets in Qt. Fix compile qmake/MinGw: Link statically for Qt Creator to be able to detect it. Enable two fast path for blend_tiled_rgb565 Avoid QString reallocation for smallcaps fonts in Itemizer::generate() Make QLabel::text a reloadable property remove non wifi interfaces from being handled. ...
| * QtDeclarative: Fix compiler warningsFriedemann Kleint2010-03-021-1/+0
| | | | | | | | | | class/struct mixups, unused variables. Reviewed-by: Thomas Hartmann <thartman@trolltech.com>