summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetext
Commit message (Collapse)AuthorAgeFilesLines
* Fix failing testsBea Lam2011-03-101-0/+5
| | | | | | | | | RTL text-related tests were failing on mac since QApplication::keyboardInputDirection() is not always initialized when the QApplication instance is created. Change-Id: Ifa7214ffb1941d824a9425015b38aa77366381bb Reviewed-by: Martin Jones
* Fix horizontal alignment of QTextDocument-based RTL textJoona Petrell2011-03-091-3/+37
| | | | | | | Task-number: QTBUG-15880 Reviewed-by: Martin Jones Change-Id: If537d7c795dec46eedee62511e75bab862676ef1
* Revert to previous lineHeight behavior.Martin Jones2011-03-091-4/+2
| | | | | | | | | | f47f01fd34d08f6152c9053c0d6928fc359aa0f9 changed the height of the Text to not include the extra spacing at the end of the block. This is different to what QDextDocument does. Revert back to the old behavior. Change-Id: Ie43dea4dd5a0e9ba179f44c246fb834322db11e3 Reviewed-by: Joona Petrell
* Use the text layout bounds calculated by QLayout.Martin Jones2011-03-081-2/+4
| | | | | | | | | We used to calculate the size and position of the cache image ourselves. Rather use the line positions and bounding rect calculated by QLayout. Change-Id: I601688ab7e310b0015a1994adf52b108f39504d8 Reviewed-by: Joona Petrell
* Base empty QML editor horizontal alignment on ↵Joona Petrell2011-03-081-2/+4
| | | | | | | | | QApplication::keyboardInputDirection() Task-number: QTBUG-15880 Reviewed-by: Martin Jones Change-Id: I240d53c8572fd3d1222b555e93812a3ee38e2558
* Reverse horizontal alignment of QML editors when the layout mirroring is enabledJoona Petrell2011-03-071-0/+29
| | | | | | Task-number: QTBUG-15880 Reviewed-by: Martin Jones Change-Id: Ie9cebd7bc6d40f5f555bfd83ddc3a24a55c6cb4d
* Fix RTL multiline Text drawingMartin Jones2011-03-041-6/+6
| | | | | | | | | | We handled horizontal alignment ourselves, but this neglected some RTL layouting issues (e.g. trailing spaces). Allow QTextLayout to do the aligning for us. Also fix eliding of multiline text for RTL language - in this case the eliding should be to the left. Change-Id: I487137b123ae66c1f5fc358a8d8a013049d05818 Reviewed-by: Joona Petrell
* Remove text alignment of empty QML editors following the layout directionJoona Petrell2011-03-041-7/+3
| | | | | | | | | | | | | | | Task-number: QTBUG-15880 Reviewed-by: Martin Jones Removed implicit text alignment of empty text in QML editor following the application's default layout direction. Change was originally made few days ago in the commit 88253db8a7d7910e1393b1948fb3747117538c92. Aligning empty and neutral text to the right for RTL locales requires much more comprehensive changes to the Qt's internal text classes than initially thought. Change-Id: I93a26df259b87dff47d57423949270656746c9a7
* Merge branch '4.7' into qtquick11Joona Petrell2011-03-042-0/+24
|\
| * Don't assert if font engine creates new glyphsAaron Kennedy2011-03-022-0/+24
| | | | | | | | | | Change-Id: Id18f58822f990788b511cbce02f8e4cf7d787c21 Task-number: QTBUG-14734
* | Make sure horizontal QML editor text aligment always returns the actual ↵Joona Petrell2011-03-011-4/+30
|/ | | | | | | | | | | alignment Also, implicit empty text alignment now follows the Application's default layout direction traditionally set by the locale. Task-number: QTBUG-15880 Reviewed-by: Martin Jones Change-Id: I88340513d489290bafd393072786a19731097b77
* Use same values for Text.lineHeightMode and QTextBlock::lineHeightMode from ↵Yann Bodson2011-02-091-6/+6
| | | | | | | | | | master. - MultiplyHeight becomes ProportionalHeight - PixelHeight becomes FixedHeight Change-Id: I2a1ebc6ff9db7e62f513919f19773f985b08f8d7 Reviewed-by: Michael Brasser
* Disable lineHeight test while implementing the feature in master properly.Yann Bodson2011-02-071-3/+3
|
* Add missing versioning tests for new QtQuick 1.1 properties/methods.Martin Jones2011-01-311-1/+23
| | | | | Task-number: QTBUG-15489 Reviewed-by: Bea Lam
* Fix lineHeight autotests.Yann Bodson2011-01-281-4/+4
|
* Add support for line spacing in Text element.Yann Bodson2011-01-282-0/+47
| | | | | | | This change adds the lineHeight and lineHeightMode properties. Task-number: QTBUG-14296 Reviewed-by: Martin Jones
* Fixing right-to-left text in Text and TextInputChristopher Ham2011-01-282-0/+51
| | | | | | | | | The Text and TextInput items should now automatically flip the alignment of right-to-left text. Autotests also added to ensure the text is on the correct side (added for TextInput also). Task-number: QTBUG-15880 Reviewed-by: Martin Jones
* Add missing revisions for QtQuick 1.1 additionsMartin Jones2011-01-272-1/+42
| | | | | Task-number: QTBUG-15279 Reviewed-by: Michael Brasser
* Expose implicitWidth and implicitHeight properties of Item.Martin Jones2011-01-241-0/+29
| | | | | | | | Overridden as readonly for elements that have an inherent implicit size such as Text, TextEdit, TextInput, positioners, Loader. Task-number: QTBUG-14957 Reviewed-by: Michael Brasser
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-191-1/+1
|\
| * Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | | | | | Reviewed-by: Trust Me
* | QDeclarativeText has new multiline propertiesChristopher Ham2011-01-142-0/+45
|/ | | | | | | | | | LineCount should return the number of lines currently being displayed. Setting maximumLineCount limits the number of lines that will be shown Truncated will return true if the text has been elided normally, or if the lines have been limited due to maximumLineCount. Task-number: QTBUG-12305 Reviewed-by: Michael Brasser
* Update reference bitmaps used in bitmap comparison tests to follow changes ↵Joona Petrell2010-10-133-0/+0
| | | | | | in Text painting Task-number: QTBUG-14374
* Replace all occurances of "Qt 4.7" with "QtQuick 1.0"Aaron Kennedy2010-09-297-61/+61
| | | | | Task-number: QTBUG-13799 Reviewed-by: Martin Jones
* Don't cause repaints during painting in Text elementMartin Jones2010-09-081-0/+11
| | | | | | | | | | Calling prepareGeometryChange in a paint event is a bad idea and was causing jerky scrolling. There is no longer any need for the removed code since we don't use imgCache.size() to determine boundingRect() anymore. Task-number: QTBUG-13453 Reviewed-by: Joona Petrell
* Bounding rect of text was not always calculated correctly.Martin Jones2010-07-212-0/+37
| | | | | | | | The boundingRect depended upon the image cache which may not become valid until after boundingRect is called. Task-number: QTBUG-12291 Reviewed-by: Michael Brasser
* font.letterSpacing used percentage rather than absolute values.Martin Jones2010-07-211-4/+4
| | | | | | | ... and percentage is useless. Task-number: QTBUG-12282 Reviewed-by: Warwick Allison
* Ensure the boundingRect() of Text is correctly calculated.Michael Brasser2010-07-201-0/+1
| | | | | | | We need to create our cached image in boundingRect() if it doesn't already exist, to prevents painting errors. Reviewed-by: Warwick Allison
* Fix TextEdit bitmap tests testing the wrong elementJoona Petrell2010-07-021-3/+3
| | | | | Task-number: Reviewed-by: Martin Jones
* Fix TextInput text getting improperly clippedJoona Petrell2010-07-021-1/+4
| | | | | Task-number: QTBUG-11790 Reviewed-by: Martin Jones
* Test only on X11, not only on Linux (which includes embedded).Warwick Allison2010-06-251-2/+2
|
* Force font selection (and so ensure visual test passes).Warwick Allison2010-06-2511-2/+7
|
* Use ugly but reliable bitmaps fonts in test.Warwick Allison2010-06-2410-0/+1
|
* Fix and better test Text / TextEdit alignments.Warwick Allison2010-06-2311-0/+108
| | | | | | Various clipping and refresh bugs. Task-number: QTBUG-11492
* Make declarative autotests compile on Symbian abld build systemJoona Petrell2010-06-082-2/+6
| | | | | Task-number: Reviewed-by: Martin Jones
* Symbian build fix to declarative auto and benchmark testsJoona Petrell2010-05-141-1/+8
| | | | | Task-number: QTBUG-9491 Reviewed-by: Martin Jones
* Fix versioning of Qt Declarative's in-built typesAlan Alpert2010-04-214-4/+4
| | | | | | Since we aren't releasing for 4.6, all types are new in 4.7. Task-number: QTBUG-10081
* Emit runtime warnings through QDeclarativeEngineAaron Kennedy2010-04-191-2/+2
| | | | QTBUG-9726
* Simplify dynamic resource loading to avoid cluttering Text API.Warwick Allison2010-04-151-1/+5
| | | | Task-number: QTBUG-9900 QT-3287
* Use qmlInfo for image loading errors, not qWarning().Warwick Allison2010-04-151-2/+2
| | | | Task-number: QTBUG-9908
* Correctly resolve, and load, IMG tags in Text element.Warwick Allison2010-04-157-0/+72
| | | | | | Task-number: QTBUG-9900 Reviewed-by: Martin Jones
* Make sure richtext wraps correctly with a fixed height set.Martin Jones2010-04-151-0/+20
|
* Rename remaining import Qt 4.6 lines to import Qt 4.7Joona Petrell2010-04-141-53/+53
| | | | | Task-number: Reviewed-by: Martin Jones
* Tweak tests to run in parallelAaron Kennedy2010-04-131-0/+3
|
* Replace Text::wrap property with Text::wrapMode enumeration.Martin Jones2010-04-081-4/+4
| | | | wrap remains for a little while, and will produce a warning.
* Change autotest class prefix from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX ↵Leonardo Sobral Cunha2010-02-241-23/+23
| | | | to QDeclarativeXXX.
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-242-0/+849
QDeclarativeXXX.