aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Move properties of Locale QML type to correct moduleTopi Reinio2013-09-171-2/+2
| | | | | | | | | Moves property and method documentation for QML Locale type from Qt Quick to Qt Qml module, and fix a number of broken links in locale-related docs. Change-Id: Id9e01314ea867987f5159ca3bffcc40abb27b289 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Removed the static intialized boolean of qquickitemsmodule.Dominik Holland2013-09-051-5/+0
| | | | | | | | | This prevents a reregistration of the all QQuick2 types when qmlClearTypeRegistrations() is called Task-number: QTBUG-32078 Change-Id: I33b4c069183d6344a2f14b4147eaa7056c3b72b9 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Initialize variables in ShaderEffectSource's texture provider.Gunnar Sletta2013-08-281-0/+4
| | | | | Change-Id: I3d737b923ee0282f58d7a2ee96824f184469daf5 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
* Updated distance field glyph caches to use QDistanceField.Yoann Lopes2013-08-276-31/+40
| | | | | | | | | | | | | | Some OpenGL drivers assume alpha-only images are always tightly packed, regardless of what is set for GL_UNPACK_ALIGNMENT. We now use QDistanceField to store glyphs, which aligns scanlines on a 1-byte boundary, instead of QImage which uses a 4-byte boundary. A previous workaround uploaded scanlines one at a time, but this is also broken with some other drivers... Task-number: QTBUG-30908 Task-number: QTBUG-32861 Change-Id: I46527fb48de1e00116f776427c45baa752c6176d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Don't crash due to KeyRelease on an unloaded ItemShawn Rutledge2013-08-271-3/+3
| | | | | | | Task-number: QTBUG-33127 Change-Id: Ie0c28abdb32c3b2318f934d3d2ddf459329384a2 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Fix girth of native text with grayscale AA or styleEskil Abrahamsen Blomfeldt2013-08-272-46/+41
| | | | | | | | | | | | | | | | | | When using a grayscale glyph cache, the source data should be interpreted differently, like in the OpenGL paint engine. We should not do srgb gamma correction and we should use the default blend mode. This also fixes styled text, since that will always default to a grayscale glyph cache. This patch ensures: 1. That we detect when the font requires grayscale AA (e.g. when font smoothing is turned off in the OS) 2. That we interpret the source data correctly. Task-number: QTBUG-31720 Change-Id: I600f4a28cd443caa0a8d5544d219b47436cde693 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
* Fix warning about unused variable.Friedemann Kleint2013-08-271-1/+0
| | | | | Change-Id: I29f5b2b890f561bc97749d19c0c5f461511c7637 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Explicitly call setCursor in the QQuickMouseArea constructorDaiwei Li2013-08-271-0/+6
| | | | | | | | | | | | | | QQuickItemPrivate has a boolean hasCursor that is used by QQuickWindow to determine whether to use the cursor for an item. QQuickMouseArea has a default cursorShape of Qt.ArrowCursor that is ignored due to hasCursor not being set. Thus, call setCursor in the QQuickMouseArea constructor to sync the cursor state of the QQuickItem and the MouseArea. Task-number: QTBUG-33157 Change-Id: I56402564bd72bdc89d6ef8e5bc75bfd07c096202 Reviewed-by: Josh Faust <jfaust@suitabletech.com> Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Dragging MouseArea nested in Flickable does not work with touch to mouseMartin Jones2013-08-192-6/+8
| | | | | | | | | | | | | A MouseArea with a drag target nested in a Flickable does not work. This is due to QQuickWindow calling childMouseEventFilter() twice - once in sendFilteredTouchEvent() and later in sendEvent(). Since childMouseEventFilter() has already been called, deliver the mouse event directly in sendFilteredTouchEvent(). Task-number: QTBUG-32920 Change-Id: I22acee3c66ee6c06e71c9c876fb02dbcb6119a8d Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
* Fix currentIndex in Qml itemView when assigning an empty modelNils Jeisecke2013-08-161-1/+1
| | | | | | | | | | When assigning an empty model to e.g. a ListView after component initialization has been completed, currentIndex is now correctly set to -1. Change-Id: I540c034944009ccb8894bf84f400658ef9f0371f Task-number: QTBUG-32838 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Don't repaint the Canvas if it's just changing position.Mitch Curtis2013-08-161-1/+1
| | | | | | | Task-number: QTBUG-33005 Change-Id: I94613c0a0e066798800e068aee7c6288fce54dbd Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Make sure we propegate the filtering state to the internal texture.Gunnar Sletta2013-08-151-1/+1
| | | | | Change-Id: Id928cf35eba254270b29a34129eb977dab34db63 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Unset the cursor when an Item is unparentedDaiwei Li2013-08-141-1/+3
| | | | | | | | | | | | It's possible for a cursor to get stuck if an item gets deleted. QQuickItemPrivate::derefWindow sets the cursorItem in QQuickWindowPrivate to 0, but doesn't unset the cursor. This causes the cursor to get stuck until the user hovers their mouse over an item that has a cursor set. Change-Id: I1d5d3ff13d69c76e4f8fe86b1f5b669bb714ecca Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Fix hover event crashJosh Faust2013-08-121-1/+8
| | | | | | | | | | | | | It was possible for a hover event to be sent to a QQuickItem that has already been scheduled to be deleted (through deleteLater()). This lead to an access on an already-freed object when the leave event is generated. This change ensures that the item is part of a scene before generating the hover enter event. Task-number: QTBUG-32771 Change-Id: I69adb6bbd0ae52c70a6bda4e6c918b7671549a4c Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Stop the update timer when no windows are visibleGunnar Sletta2013-08-071-1/+4
| | | | | Change-Id: Ib9758a99891829d9bec81996687373d08ecfa055 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Remove C-style casts from public headers.Thiago Macieira2013-08-062-16/+16
| | | | | | | Task-number: QTBUG-32735 Change-Id: I14c313d17b80dce1826290ddd634f449b315190e Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Improve memory usage of QQuickTextNode.Michael Brasser2013-08-062-8/+8
| | | | | | | | | | The typical number of BinaryTreeNodes needed for a text line should be much lower than 256. Task-number: QTBUG-32770 Change-Id: I85aa161eb7cb6e55657213304b7577a0a33f1b67 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Avoid using connect in QQuickImplicitSizeItem.Michael Brasser2013-08-011-14/+2
| | | | | | | | | | In the past connect has shown up as a noticeable cost in item creation. Avoid the use here by refactoring to call base class implementation and emit override signal as well. Task-number: QTBUG-32764 Change-Id: If3e5a1cc55c113d812705fcfdc7a17aee9d6f51c Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
* Fix crash when changing non-cached source of image during animationMichael Brasser2013-08-011-2/+2
| | | | | | | | | Ensure deferred deletions are handled while syncing, otherwise texture might be deleted after sync but before deferred deletion is processed. Task-number: QTBUG-32513 Change-Id: Id276f536a5722a36baae815b7b550b574eeeb483 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Remove comment that QQuickPaintedItem is only useful for porting.Gunnar Sletta2013-08-011-3/+0
| | | | | Change-Id: I5d4a7917baa7c8f8dd7cfe3f49c6cf4fe5532ac0 Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
* Fixed distance field text getting clipped at small sizes.Yoann Lopes2013-08-011-1/+1
| | | | | | Task-number: QTBUG-32750 Change-Id: I6bdf63d3cbcaaeb54c7c1ae25dfc55fc7e964075 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Doc: Clean up docs for PathView.highlightRangeMode enum valuesTopi Reinio2013-08-011-16/+19
| | | | | | | | | Fix PathView.NoHighlightRange description, move the enum values into a list, and do some minor editing. Task-number: QTBUG-16160 Change-Id: I5356c21ea3244ce43defa346da11696a8706c71f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Rectangle which only draw an opaque border should not be blended.Gunnar Sletta2013-08-011-1/+1
| | | | | Change-Id: I55996a1c38ad6da4566d2160155503a27ad4a20b Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
* Correctly update flickable visibleArea.heightRatio when geometry changesNils Jeisecke2013-07-311-5/+5
| | | | | | | | | | | | | | | | | | Without this fix the visibleArea.heightRatio and widthRatio values were only updated on geometry changes when flicking was active. So when setting the flickable geometry to the content geometry and thereby disabling flicking the ratios were not updated. This could for example cause wrong scrollbar renderings. The ratios are now also calculated directly after accessing the visibleArea property for the first time. The new autotest covers both problems. Change-Id: I54ba606524557fb328a198c312c1f65eb125c5a3 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* QQuickListViewPrivate::updateStickySections(): add missing null checkJ-P Nurmi2013-07-291-1/+1
| | | | | | Task-number: QTBUG-32711 Change-Id: I45ed6829f2c240e8352dac33beeee803cb88a18d Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Merge remote-tracking branch 'origin/release' into stableSergio Ahumada2013-07-261-2/+4
|\ | | | | | | Change-Id: Ibb0e597c0cd02732bae3ef0ccc31c3ef36c75584
| * Workaround for distance field glyph upload problem.Yoann Lopes2013-07-261-2/+4
| | | | | | | | | | | | | | | | | | | | | | It seems uploading an image (into a texture) which has padding at the end of each scanLine and alpha-only pixel format is broken with some OpenGL ES drivers. The workaround is to upload one line at a time. Task-number: QTBUG-30908 Change-Id: Ic680654951b6aec294c1a173708c1fb75e57ff8f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* | Resizing items out of the list viewport should not change the viewportAlbert Astals Cid2013-07-241-4/+6
|/ | | | | | | | Consider the old geometry, not the new one to check if an item was outside the viewport or not Change-Id: I108412d560faf86130044f3d091254c07af0c004 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Fix CLANG-warning '&&' within '||' [-Wlogical-op-parentheses].Friedemann Kleint2013-07-121-1/+1
| | | | | Change-Id: Id724c86f87a78048df9b93f2d190593d36261943 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* Fix CLANG-warning about unused member variable m_defaultAntialiasingMode.Friedemann Kleint2013-07-121-1/+0
| | | | | Change-Id: I68a04532bacd326b4bb3eb8f9a7ee04c67fcd68e Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
* Fixed typo 'backens'Thorbjørn Lindeijer2013-07-081-1/+1
| | | | | Change-Id: I65e4492d1bc70e5344c0edc37a7c2f87fe355e62 Reviewed-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
* Update snap when snapMode changesAlbert Astals Cid2013-07-081-0/+1
| | | | | | | Task-number: QTBUG-32258 Change-Id: Id2120acad06d7cfce988400df0067e2c0f16eb24 Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* Fix typo in Graphical Effects documentation.Mitch Curtis2013-07-081-1/+1
| | | | | Change-Id: Iad5ee6a965a6373941468bf98ac328e51c5c4066 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Item views: do not track the geometry of items being removedJ-P Nurmi2013-07-044-41/+45
| | | | | | Task-number: QTBUG-31873 Change-Id: I4230893ccb2925ed9c2429d26b411264bf7c1c65 Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
* QQuickTextEdit: move QSG* members from dptr to root node.Pierre Rossi2013-07-032-19/+39
| | | | | | | | | Subclass QSGTransform node for our use case and add the frame decorations and cursor nodes in there. Task-number: QTBUG-31580 Change-Id: Id2b468b53092f21134ae45e5694bc54c43660f8b Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Initialize m_dirty_texture memberGunnar Sletta2013-07-031-0/+1
| | | | | Change-Id: I4fa2774aef9bc3258572d28425d1427151297358 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Fix warning about change of sign: glyph_t is unsignedThiago Macieira2013-07-031-3/+3
| | | | | | | | | qsgdistancefieldglyphnode_p.cpp(222): warning #68: integer conversion resulted in a change of sign Use the value 0, which is reserved to mean "no texture" Change-Id: I0bb135639c432ab08f6561c1d45f64e2d8f96dd7 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Fix missing QQuickTextDocument docsJ-P Nurmi2013-07-022-18/+18
| | | | | | | | | It didn't appear in the docs at all. Moving the documentation to .cpp fixes the problem. Change-Id: Id9741bc6dab20ba976952143160d3551787fae40 Reviewed-by: Liang Qi <liang.qi@digia.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* Document public members of QSGSimpleMaterialShaderGunnar Sletta2013-07-021-3/+15
| | | | | Change-Id: I2e46989d4076ff639d7264985e030df0f1cb2a88 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Relayout the text after the vertical alignment is changedMarco Bubke2013-07-011-0/+4
| | | | | | | | | | In the designer it is no working without a layout update. Task-number: QTBUG-32041 Change-Id: I2276914c81b38ad8931109b3d800b65a0d11bca7 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
* Only emit moving change signals when moving actually changesAaron Kennedy2013-07-011-2/+2
| | | | | Change-Id: Ib775ce8439183388634c6b08785cd8aff4e8e174 Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
* Document QWindow::alert() in Qt Quick.Friedemann Kleint2013-06-281-0/+12
| | | | | | | | Task-number: QTBUG-32069 Task-number: QTBUG-30416 Change-Id: If7e9fd63d858416a23ff768272d94219595be1c5 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Request paint if scene changes for the canvas itemMarco Bubke2013-06-261-1/+4
| | | | | | | | | Otherwise for every scene the canvas is simply not painted anymore in the designer. For example if you change the parent. Change-Id: I4883eab44d73a59381230755f7caa596f2b6569f Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
* Merge remote-tracking branch 'origin/release' into stableFrederik Gladhorn2013-06-252-2/+3
|\ | | | | | | Change-Id: I6e060496b8c252fb4e2d5d2d40ae16bf950e2ec4
| * Update 5.1.0 changelog and what's newAlan Alpert2013-06-251-1/+2
| | | | | | | | | | | | | | All the new features should now be listed in those two documents Change-Id: Ifa17581bf589f3a18b602f8a1d10683a5e48c70d Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
| * Add missing Q_REVISIONAlan Alpert2013-06-231-1/+1
| | | | | | | | | | | | | | This invokable method is new in Qt 5.1/QtQuick 2.1 Change-Id: I7d0e332b52a815ac0722e39db68ef1f190534a57 Reviewed-by: Liang Qi <liang.qi@digia.com>
* | Improve QtQuick Item Anchors documentation.Mitch Curtis2013-06-251-5/+5
| | | | | | | | | | Change-Id: Ib47051be82df16e5d08df50b5327aba8c004f4d3 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Tidy up Context2D transform-related documentation.Mitch Curtis2013-06-257-20/+31
| | | | | | | | | | | | | | | | | | | | Also adds back some images that 61d35829eed6661c1371d397bbb316ea2f636c50 removed (4a5d31a56dfd871f3f7c5ce162885ebc870b8803 specified the wrong paths to all but one file, which is probably why they were cleaned up). Change-Id: Idd42bb831c97935e53ce05c69ea2691a2769f453 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | emit runningChanged when AnimatedSprite stops by loops settingsTasuku Suzuki2013-06-221-3/+4
| | | | | | | | | | | | Task-number: QTBUG-31522 Change-Id: I20718cda5f77f3a53176c8b1a4baacedd77375af Reviewed-by: Alan Alpert <aalpert@blackberry.com>
* | Fix some Canvas/Context2D documentation issues.Mitch Curtis2013-06-212-32/+53
| | | | | | | | | | | | | | Task-number: QTBUG-23597 Change-Id: I7b3c343a822c136cecec5ce9ce705f2d99466e77 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>