diff options
| author | Liang Qi <liang.qi@digia.com> | 2014-08-14 12:46:07 +0200 |
|---|---|---|
| committer | Liang Qi <liang.qi@digia.com> | 2014-08-23 22:52:32 +0200 |
| commit | 3f2dc4a8d4066b47e639ad8a36c1c2ac3c6d3f27 (patch) | |
| tree | c97cbbf27f13b01aaa0dd2ae2bc276044351d5c4 /src/controls/TextField.qml | |
| parent | 57bf74b0dc132a5e139ff1e4e5ada48c33cc6cc8 (diff) | |
QtQuick.Controls TextField: add remove() function
Autotest is included.
[ChangeLog][QtQuick.Controls] TextField: add remove() function
Task-number: QTBUG-40735
Change-Id: If73ec284da6d0306a7f01d001f2b762a9369f61d
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'src/controls/TextField.qml')
| -rw-r--r-- | src/controls/TextField.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml index e318d796c..01ea28457 100644 --- a/src/controls/TextField.qml +++ b/src/controls/TextField.qml @@ -535,6 +535,16 @@ Control { } /*! + \qmlmethod TextField::remove(int start, int end) + \since QtQuick.Controls 1.4 + + Removes the section of text that is between the start and end positions. + */ + function remove(start, end) { + textInput.remove(start, end) + } + + /*! \qmlmethod TextField::select(int start, int end) Causes the text from \a start to \a end to be selected. |
