← Back to team overview

ubuntu-sdk-team team mailing list archive

[Merge] lp:~daker/ubuntu-ui-toolkit/fix.1658121 into lp:ubuntu-ui-toolkit/staging

 

Adnane Belmadiaf has proposed merging lp:~daker/ubuntu-ui-toolkit/fix.1658121 into lp:ubuntu-ui-toolkit/staging.

Requested reviews:
  Ubuntu SDK team (ubuntu-sdk-team)
Related bugs:
  Bug #1658121 in ubuntu-ui-toolkit (Ubuntu): "TextArea: QtQuick.TextEdit append is not exposed"
  https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1658121

For more details, see:
https://code.launchpad.net/~daker/ubuntu-ui-toolkit/fix.1658121/+merge/315241

Expose append method in TextArea
-- 
Your team Ubuntu SDK team is requested to review the proposed merge of lp:~daker/ubuntu-ui-toolkit/fix.1658121 into lp:ubuntu-ui-toolkit/staging.
=== modified file 'src/imports/Components/1.3/TextArea.qml'
--- src/imports/Components/1.3/TextArea.qml	2016-11-10 15:36:49 +0000
+++ src/imports/Components/1.3/TextArea.qml	2017-01-20 16:12:42 +0000
@@ -581,6 +581,16 @@
     }
 
     /*!
+      Appends a new paragraph with text to the end of the TextArea.
+
+      In order to append without inserting a new paragraph, call TextArea.insert(TextArea.length, text) instead.
+      */
+    function append(text)
+    {
+        editor.append(text);
+    }
+
+    /*!
       Returns the text position closest to pixel position (x, y).
 
       Position 0 is before the first character, position 1 is after the first


Follow ups