summaryrefslogtreecommitdiff
path: root/src/controls/TextField.qml
Commit message (Collapse)AuthorAgeFilesLines
* Set baselineOffset on Styles/Base correctlyJan Arve Saether2014-02-261-0/+3
| | | | | | | | Fixes the baselineOffset for TextField and SpinBox Task-number: QTBUG-36529 Change-Id: I697d4c8bc2ee61929eabb54a6ec6520311a4e3e2 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-02-121-3/+3
|\ | | | | | | | | | | | | Conflicts: src/layouts/qquicklinearlayout.cpp Change-Id: Ib24dab43c37fc0f3f6a85398766f102a1ac833c3
| * Doc: Fix broken linksSze Howe Koh2014-02-061-2/+2
| | | | | | | | | | Change-Id: Ibf4431b20b61c5e16c6936775647ba3eb0049abe Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
| * Ignore selectByMouse on android until QTBUG-36515 is resolvedJens Bache-Wiig2014-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | At the moment mouse selection on android can make text input unusable when certain virtual keyboard features are enabled. This patch will temprorarily disable this feature on TextField and TextArea until we have a workable solution for these cases. Change-Id: Ia04db31d1e83ddfc47bec7519e5a78746e6626a9 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* | Accessibility: Improve TextField and AreaFrederik Gladhorn2014-02-071-0/+2
|/ | | | | | | Add password and read only states Change-Id: I5da2fafc0be8ee451ea754774e8daa8aee2f0dcd Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Controls: Fixed support for Keys attached property on controls allowing text ↵Liang Qi2014-01-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | input By forwarding key events from the internal control. It includes TextField, TextArea, ComboBox, SpinBox. The key events from internal are Keys.forwardTo controls, then user could customize their own behavior for those controls. Autotest are included. [ChangeLog][QtQuickControls] Fixed support for Keys attached property on controls allowing text input, by forwarding key events from the internal control. Task-number: QTBUG-33493 Task-number: QTBUG-34101 Task-number: QTBUG-35763 Change-Id: I00ea131160e55048b34fe0713e1ee02ff9472f05 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Fix TextField::placeholderText docsJ-P Nurmi2014-01-211-1/+1
| | | | | | | | | For usability reasons the placeholder text is kept always visible when the control is empty, even when focused. Task-number: QTBUG-36303 Change-Id: I79733b0cf2a48807fb45d5697399f183c2b97f94 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* TextField: Fix binding loop for property fontCaroline Chao2013-11-271-1/+1
| | | | | Change-Id: I752595495a3cb1347eb5f43dcf8ff36044a02e02 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* TextField: add editingFinished signalLiang Qi2013-11-221-1/+15
| | | | | | | | Autotest is included. Task-number: QTBUG-34780 Change-Id: I19e73ca0c988a9d294aca52f9c0eabb9274f40d7 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Fix input method committingFrederik Gladhorn2013-11-061-1/+5
| | | | | | | | | On mobile devices the virtual keyboard would in some situations not have words committed yet - this leads to the last word after a space being cut off when querying for the text property. Change-Id: I23d81154f3bed1dd287f24c3c5f958cf4335475c Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Doc: Fix links to Qt Quick Controls Styles itemsCaroline Chao2013-10-231-1/+1
| | | | | Change-Id: I406c159fbc573e8b0a999d85fd6fb546b71634ac Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Expose renderType to SpinBox and TextFieldJens Bache-Wiig2013-10-211-2/+2
| | | | | | | | | | | This is useful in case you want to create your own scaling styled controls. Task-number: QTBUG-33917 Change-Id: I0d641319a3106b8e0971d0aae69799bc1aff7f78 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
* TextField: Also hide placeholderText when text input is composingCaroline Chao2013-10-171-1/+1
| | | | | Change-Id: I33acdb7edfb6f9792e36e0f9472f0de66ce788d5 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Doc: Changed the \since argument to the Qt version.Jerome Pasion2013-09-261-1/+1
| | | | | | | | | | | | | | -1.0 types were introduced in Qt 5.1 -1.1 types were introduced in Qt 5.2 -The module versions are now taken from the \qmlmodule This change was only applied to \qmltype. For methods, signals, and properties, we keep the \since QtQuick.Controls <version> Task-number: QTBUG-32172 Change-Id: Iefa73d4a489aa285bae873f68ae9a228030f0115 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Update imports to 1.1 and remove version from qmlmodule definitionJens Bache-Wiig2013-09-101-3/+3
| | | | | Change-Id: Icb4c6d78225c072da787e4646a55d8cf71a5db7a Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Be bit more clever with when we clip.Gunnar Sletta2013-08-031-2/+3
| | | | | | | | Clipping breaks every optimization the scene graph can do, so we should avoid it when possible. Change-Id: I774bfedb19e0fa9f48c35a8db84a81f5528a4ef8 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Remove useless imports using relative pathsCaroline Chao2013-06-241-1/+0
| | | | | Change-Id: Ibab79ec3e38e9e0cae01aeb12dd2f643673b5680 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Keep TextField placeholder text visible when focusedJ-P Nurmi2013-06-191-14/+14
| | | | | | | | | | | | This is useful when the widget is focused by default, and also gives another opportunity to the user to read the message before typing, removing the need for workarounds like clicking in another text entry to bring back the placeholder message. Same as qtbase commit eeb31ad1 for QLineEdit. Change-Id: I466dd66490e05503b51e208beefd5366b25fd939 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Expose hovered to our controls and document it consistentlyJens Bache-Wiig2013-06-061-2/+5
| | | | | | | | | The current solution is messy and we only expose it partially to some of our styles. I think we should simply expose this to all. Change-Id: Ia546d5657ea416df99c9d9d92cc714b7f1c928fe Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
* Enable padding as a grouped propertyJens Bache-Wiig2013-05-241-1/+1
| | | | | | | | | We want padding to be a grouped property as the existing Margins property looks rather odd and insconsistent. Change-Id: I9e614f9161aaf01af200b19a1fb46a51beec6fb4 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Make QQuickSettings::style a property with a notifier signalJ-P Nurmi2013-05-241-1/+1
| | | | | Change-Id: I9f1690524e29cd7fe0ab35be216aca9a6edd35ca Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Refactor and clean up public style APIJens Bache-Wiig2013-05-081-1/+4
| | | | | Change-Id: I10271c860abd9b45a262e3548628e6a3026e1a4f Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Doc: correct for compliancy with Writing GuidelinesNico Vertriest2013-05-071-0/+1
| | | | | | | | Task-number: QTBUG-30318 Change-Id: If3916f3250f202a5da4b1f8034ecfba984367af3 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Remove hard dependency on widgetsJens Bache-Wiig2013-04-151-2/+1
| | | | | Change-Id: I1fabb4efcc931f12f0a65ac5c66e6e085108269b Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Make it possible to use forceActiveFocus on TextFieldJens Bache-Wiig2013-04-081-5/+1
| | | | | | | | | | I believe the manual forceActive focus is no longer necessary since TextField is now a focus scope and it is enough to set the focus property on the TextInput. Without this patch, calling foceActiveFocus does not actually give the text cursor focus. Change-Id: I2dda5c7c0e9511f0d8b6817dcd7b78230e6cb823 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Cleanup the superfluous \internal tags that are no longer neededJ-P Nurmi2013-04-081-2/+0
| | | | | Change-Id: I2eaaf7e82351e70a742eeadc32b8e1f8655a02c1 Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Doc: minor language editsNico Vertriest2013-04-051-7/+7
| | | | | | | | | | | | | Concerning vocab., punctuation, syntax and/or Writing Guidelines. Corrected whitespace issues. Replaced "if" with "whether" in Slider.qml Task-number: QTBUG-30318 Change-Id: I0e0e8d2b807f0a6534deb2caa6dbee7eb206f43b Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Laszlo Papp <lpapp@kde.org>
* TextField: Remove unnecessary MouseAreaGabriel de Dietrich2013-03-231-5/+1
| | | | | Change-Id: I2ca953321130bb0b40f55cd4051d4b390b3db554 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Support QQuickItem.activeFocusOnTab in QtQuick.ControlsLiang Qi2013-03-191-0/+2
| | | | | Change-Id: Ie23b504f590e6c4e7f2a1a9090c2dd8671389937 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Change imports from QtQuick 2.0 to QtQuick 2.1Caroline Chao2013-03-141-2/+2
| | | | | | Change-Id: If9df032c76e36f385aacd30cc31d6f02574c6f11 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Doc: Edited TextField documentationJerome Pasion2013-03-111-80/+109
| | | | | | | -reworded some sentences. Change-Id: I8bce735c4fdeff0f542e5ce5d0ad424b233f9a65 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Make the doc index page actually usefulJens Bache-Wiig2013-02-271-1/+1
| | | | | | | | Improved group labels and added direct links from the index page. Change-Id: I856df138880b1aac8c574f676424ac4644e298f9 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Replaced BSD with LGPL license to conform with Qt Project modulesShawn Rutledge2013-02-211-2/+2
| | | | | | | | We want to use the same license as the other Qt modules. QML files stay as BSD for now. Change-Id: I10b1484f5ab0dfe2138ff7e045d0ecfd85556aa1 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Rename QtDesktop to QtQuick.ControlsJens Bache-Wiig2013-02-211-0/+564
Change-Id: Icc61dbfc74cc2a303b9847e7d2c7ace4a9002046 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>