summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativemousearea.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integrationQt Continuous Integration System2011-02-181-2/+36
|\ | | | | | | | | | | | | | | | | | | | | | | | | * '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Fix TextEdit auto test failure on windows. Fix FocusScope example. Fix compilation on old Symbian platforms Export symbols from qtestlib required for QtQuickTest Allow MouseArea to prevent mouse grab begin stolen by Flickable. Fix QTBUG-17008 XmlListModel blocks Windows system events Fix TextInput, TextEdit auto test failure on windows and mac. QDeclarativeDebug: Fix crash when serializing list of QObjects Update the input context when the pre-edit cursor position changes.
| * Allow MouseArea to prevent mouse grab begin stolen by Flickable.Martin Jones2011-02-171-2/+36
| | | | | | | | | | | | | | | | | | | | | | | | Placing a MouseArea in a Flickable (or PinchArea, or PathView) allows the Flickable to steal mouse events when it detects a flick/drag event. In some cases this is not desireable and MouseArea should be able to retain its grab. Added a 'preventStealing' property to prevent an ancestor item from stealing the MouseArea's grab. Change-Id: I6277fbb76919b2b35d4e32a247b38a90e305dbdf Task-number: QTBUG-17285 Reviewed-by: Joona Petrell
* | Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integrationQt Continuous Integration System2011-02-141-0/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | * '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Don't leak ScopeChainNode's Rename 'plugins\qmldebugging' (work around qmake issues) Correct the "module not installed" error handling Flickable uses the flick velocity to determine whether to retain grab Make addImportPath() work for windows paths starting with lower case Report any exceptions occurring in WorkerScript javascript code MouseArea docs - link to onCanceled() from onReleased()
| * MouseArea docs - link to onCanceled() from onReleased()Bea Lam2011-02-111-0/+2
| |
* | Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-staging into ↵Qt Continuous Integration System2011-02-041-2/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/qt-doc-staging: (216 commits) Doc: Fixed a reference to the wrong image. Fixed a bug that caused marked up inline text to be truncated. Doc: Renamed an image to ensure that it does not clash with another. Doc: Fixed QML, unindented snippet. Doc: Removed unnecessary HTML entity from the title. Doc: Fixed broken links to the old Symbian Foundation Wiki. Doc: Updated the copyright statements in the templates. Doc: Fixing typo Replace all occurances of "Qt 4.7" with "QtQuick 1.0" Doc: Adjusted the font sizes for the offline documentation. Doc: Added a missing style sheet to the qhp manifest. Doc: Fixed the qthelp namespace for the Qt documentation. Doc: including missing pages in overviews. Doc: Fixed typo in QCoreApplication docs Fixed whitespace. Avoid hard-coding product names in page titles. Doc: Unindented a code snippet. Doc: Fixed confusing wording of a sentence. Doc: Fixed a broken link. Doc: Updated the information about commercial editions of Qt. ...
| * Merge branch '4.7' of ../qt into 4.7David Boddie2011-01-131-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/src/declarative/qdeclarativeintro.qdoc doc/src/declarative/qdeclarativereference.qdoc doc/src/snippets/declarative/focus/focusColumn.qml tools/qdoc3/apigenerator.cpp tools/qdoc3/apigenerator.h tools/qdoc3/archiveextractor.cpp tools/qdoc3/bookgenerator.cpp tools/qdoc3/bookgenerator.h tools/qdoc3/ccodeparser.cpp tools/qdoc3/command.cpp tools/qdoc3/command.h tools/qdoc3/cpptoqsconverter.cpp tools/qdoc3/dcfsection.cpp tools/qdoc3/dcfsection.h tools/qdoc3/jambiapiparser.cpp tools/qdoc3/jambiapiparser.h tools/qdoc3/javacodemarker.cpp tools/qdoc3/javacodemarker.h tools/qdoc3/javadocgenerator.cpp tools/qdoc3/javadocgenerator.h tools/qdoc3/linguistgenerator.cpp tools/qdoc3/linguistgenerator.h tools/qdoc3/loutgenerator.h tools/qdoc3/mangenerator.cpp tools/qdoc3/mangenerator.h tools/qdoc3/polyarchiveextractor.cpp tools/qdoc3/polyarchiveextractor.h tools/qdoc3/polyuncompressor.cpp tools/qdoc3/polyuncompressor.h tools/qdoc3/qsakernelparser.cpp tools/qdoc3/qscodemarker.cpp tools/qdoc3/qscodemarker.h tools/qdoc3/qscodeparser.cpp tools/qdoc3/qscodeparser.h tools/qdoc3/sgmlgenerator.cpp tools/qdoc3/sgmlgenerator.h tools/qdoc3/test/qt-html-templates.qdocconf tools/qdoc3/uncompressor.cpp tools/qdoc3/webxmlgenerator.cpp tools/qdoc3/webxmlgenerator.h
| * | Doc: Used div elements for floats, updated the style sheet.David Boddie2010-12-141-1/+3
| | |
| * | Doc: Changed floating images to use the new float qdoc macros.David Boddie2010-12-131-3/+1
| | |
* | | Notify that pressed has changed before calling the onClicked handler.Michael Brasser2011-01-251-1/+2
| | | | | | | | | | | | | | | | | | | | | This is a more natural ordering, and makes it trivial to control different state groups with pressed and onClicked. Reviewed-by: Martin Jones
* | | Improve information reported for MouseArea hover events.Michael Brasser2011-01-251-2/+6
| | | | | | | | | | | | Reviewed-by: Martin Jones
* | | Fix copy-paste error in QDeclarativeMouseArea::hoverMoveEvent.Michael Brasser2011-01-251-1/+1
| |/ |/| | | | | Reviewed-by: Martin Jones
* | Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
|/ | | | Reviewed-by: Trust Me
* Flickable and MouseArea were too eager to take/keep mouse grab.Martin Jones2010-11-241-12/+25
| | | | | | | | | This meant that they would sometimes act upon a drag immediately, rather than waiting for a nested area to take the grab. This resulted in a short jump before future events were handled by the nested item. Task-number: QTBUG-15568 Reviewed-by: Bea Lam
* Quickly clicking an item that doesn't use double clicking should result in ↵Joona Petrell2010-11-011-1/+2
| | | | | | | two separate clicks Task-number: QTBUG-14832 Reviewed-by: Martin Jones
* Fixed many spelling errors.Rohan McGovern2010-10-251-1/+1
|
* Ensure that onRelease is called for doubleClick events.Martin Jones2010-10-081-6/+6
| | | | | | | | Also ensures that the pressed property is updated appropriately and the double click and hold is possible. Task-number: QTBUG-14279 Reviewed-by: Michael Brasser
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7David Boddie2010-09-151-7/+10
|\
| * When onDoubleClicked: is handled don't emit a second onPressed/onClickedMartin Jones2010-09-131-7/+10
| | | | | | | | | | Task-number: QTBUG-12250 Reviewed-by: Michael Brasser
* | Doc: Further QML improvements.David Boddie2010-09-151-22/+61
|/
* Doc: Added types to method and signal documentation; other fixes.David Boddie2010-09-011-5/+5
|
* Remove pointless \internal docs (that contain no information)Aaron Kennedy2010-08-271-11/+0
|
* qdoc: Reorganized the QML elements table to be a dictionary...Martin Smith2010-08-161-0/+1
| | | | ...and a set of functional group pages.
* Fix crash in MouseAreaJoona Petrell2010-07-231-1/+2
| | | | | Task-number: Reviewed-by: Martin Jones
* Allow MouseArea dragging to filter mouse events from descendantsMartin Jones2010-07-221-3/+93
| | | | | | | | This allows dragging a MouseArea that contains a clickable MouseArea, for example. Task-number: QTBUG-12323 Reviewed-by: Michael Brasser
* Compile: include <float.h> for usage of FLT_MAX.Michael Brasser2010-07-201-4/+1
|
* Restore the FLT_MAX define.Martin Jones2010-07-201-0/+4
| | | | Seems some platforms don't have it.
* Better defaults for MouseArea's drag.Michael Brasser2010-07-201-1/+2
| | | | | | | | | | Allow essentially unbounded dragging once drag.target is set. The previous default of contraining the dragging to 0,0 (i.e. no drag) was unintuitive for learners. It's rare that unbounded is actually what you want, but it makes it much easier to get started with the element. Task-number: QTBUG-11184 Reviewed-by: Martin Jones
* improvements to docs and examplesBea Lam2010-07-141-2/+8
|
* Don't crash if drag.target has no parentItemMartin Jones2010-07-071-2/+2
| | | | Task-number: QTBUG-11986
* Docs - add more links to relevant examplesBea Lam2010-06-301-1/+1
| | | | Task-number: QTBUG-11754
* Doc fixesBea Lam2010-06-181-6/+6
|
* Minor doc fixesBea Lam2010-06-111-2/+2
|
* Small optimization when checking if MouseArea's onPressAndHold isMichael Brasser2010-06-091-1/+1
| | | | being used.
* Doc fixes and improvements - fix some example code, link toBea Lam2010-06-021-32/+27
| | | | examples from class docs and improve assorted docs
* Fixes doc of mouse area's onEnteredLeonardo Sobral Cunha2010-05-101-3/+3
| | | | Task-number: QTBUG-9227
* Avoid emitting release when the mouse is ungrabbedLeonardo Sobral Cunha2010-05-071-3/+16
| | | | | | | | | | Added an onCanceled signal to mouse area, which is triggered when the mouse area rejects the event (propagates to the nearest mouse area beneath) or some other element steals the mouse grab (flickable, for example). Task-number: QTBUG-10162 Reviewed-by: Michael Brasser
* Use enum for drag.axis in doc and examples.Yann Bodson2010-05-061-2/+2
|
* Remove obsolete doc groupings.Michael Brasser2010-05-041-2/+0
|
* Doc: Qt.MidButton -> Qt.MiddleButtonMartin Jones2010-04-281-2/+2
|
* Emit hoverChanged appropriately when Item visibility changes.Martin Jones2010-04-281-0/+33
| | | | Task-number: QTBUG-10243
* Emit released and hoveredChanged in MouseArea when a UngrabMouse is receivedLeonardo Sobral Cunha2010-04-211-1/+3
| | | | | | | | | | | The unbgrab mouse happens when the mouse area is inside a flickable and the flickables takes control over the mouse handling. In this case, the UngrabMouse will behave similarly to a MouseRelease, emitting released, pressedChanged and hoveredChanged. Visual autotest added to mousearea in qmlvisual. Reviewed-by: Michael Brasser
* Add drag.active property to MouseArea in qmlLeonardo Sobral Cunha2010-04-201-7/+28
| | | | | | | The drag.active property specifies if the target item is being dragged. Task-number: QTBUG-9833 Reviewed-by: Martin Jones
* Renamed mousePosChanged signal to mousePositionChangedLeonardo Sobral Cunha2010-04-191-3/+3
|
* Update mouse area coordinates automatically when changing positionLeonardo Sobral Cunha2010-04-191-1/+23
| | | | | | | | | Mouse area coordinates are now updated when the mouse area changes position and positionChanged signals are not emitted on mousePress anymore (only mousePosChanged signals). Task-number: QTBUG-9716 Reviewed-by: Michael Brasser
* Don't emit clicked() after pressAndHold()Martin Jones2010-04-081-1/+1
| | | | Task-number: QTBUG-9676
* Allow MouseArea.Drag.target to be reset.Martin Jones2010-04-071-0/+8
| | | | Task-number: QTBUG-9637
* Initialize drag movement correctly if drag.target is set after mouse move.Martin Jones2010-04-071-3/+3
| | | | Task-number: QTBUG-9638
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-04-071-3/+3
|\
| * Update #include of private headers in QtDeclarativeThiago Macieira2010-04-021-3/+3
| | | | | | | | | | Always use private/. The WinSCW compiler doesn't search the current directory, for whatever reason.
* | Honor the startDragThreshold in MouseArea drag.Martin Jones2010-04-071-2/+2
|/ | | | Task-number: QTBUG-9381