← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1594400] [NEW] Wrong statement about "persistentSelection" property of TextArea

 

Public bug reported:

In the documentation for UITK TextArea[1]:
    "Whether the TextArea should keep the selection visible when it loses active focus to another item in the scene. By default this is set to true;"

In the documentation for QML TextEdit component (inherited by UITK TextArea):
    "Whether the TextEdit should keep the selection visible when it loses active focus to another item in the scene. By default this is set to false."

The component from UITK[3] only set an alias to the TextEdit property,
without changing its default value. This leads to an unexpected
behaviour whenever the default property is set to a different value by
the upstream project.

In Qt 5.0.2 the property was set to true[4]. Since Qt 5.1.1, the value
has been changed[5].

====

[1] https://developer.ubuntu.com/api/apps/qml/sdk-15.04.4/Ubuntu.Components.TextArea/
[2] http://doc.qt.io/qt-5/qml-qtquick-textedit.html#persistentSelection-prop

[3] http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-
toolkit/staging/view/head:/src/Ubuntu/Components/1.3/TextArea.qml

[4] http://qt.apidoc.info/5.0.2/qtquick/qml-qtquick2-textedit.html#persistentSelection-prop
[5] http://qt.apidoc.info/5.1.1/qtquick/qml-qtquick2-textedit.html#persistentSelection-prop

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1594400

Title:
  Wrong statement about "persistentSelection" property of TextArea

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  In the documentation for UITK TextArea[1]:
      "Whether the TextArea should keep the selection visible when it loses active focus to another item in the scene. By default this is set to true;"

  In the documentation for QML TextEdit component (inherited by UITK TextArea):
      "Whether the TextEdit should keep the selection visible when it loses active focus to another item in the scene. By default this is set to false."

  The component from UITK[3] only set an alias to the TextEdit property,
  without changing its default value. This leads to an unexpected
  behaviour whenever the default property is set to a different value by
  the upstream project.

  In Qt 5.0.2 the property was set to true[4]. Since Qt 5.1.1, the value
  has been changed[5].

  ====

  [1] https://developer.ubuntu.com/api/apps/qml/sdk-15.04.4/Ubuntu.Components.TextArea/
  [2] http://doc.qt.io/qt-5/qml-qtquick-textedit.html#persistentSelection-prop

  [3] http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-
  toolkit/staging/view/head:/src/Ubuntu/Components/1.3/TextArea.qml

  [4] http://qt.apidoc.info/5.0.2/qtquick/qml-qtquick2-textedit.html#persistentSelection-prop
  [5] http://qt.apidoc.info/5.1.1/qtquick/qml-qtquick2-textedit.html#persistentSelection-prop

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1594400/+subscriptions


Follow ups