Details

    • Android
    • 2024wk22s2FOQtforAndroid, 2024wk24s2FOQtforAndroid, 2024wk26s2FOQtforAndroid, 2024wk38s2FOQtforAndroid, 2024wk28s2FOQtforAndroid, 2024wk30s2FOQtforAndroid, 2024wk32s2FOQtforAndroid, 2024wk36s2FOQtforAndroid, 2024wk40s3FOQtforAndroid
    • 62a5d8040 (dev), 64cd7ca0c (6.8)

    Description

      Original changes

      https://codereview.qt-project.org/c/qt/qtdeclarative/+/559067/45/src/quick/jar/org/qtproject/qt/android/QtAbstractItemModel.java

      https://codereview.qt-project.org/c/qt/qtdeclarative/+/559067/45/src/quick/jar/org/qtproject/qt/android/QtModelIndex.java 

      add two public Java APIs :

      • QtAbstractItemModel
      • QtModelIndex

      Both are Java wrappers of QAbstractItemModel and QModelIndex

      Currently, they cover an essential subset of original APIs. This should be taken into account in "Detailed Description" section and also in function descriptions.

      Here is an example:

      // C++ docs for ::hasChildren
      Returns true if parent has any children; otherwise returns false.Use rowCount() on the parent to find out the number of children.
      
      Note that it is undefined behavior to report that a particular index hasChildren with this method if the same index has the flag Qt::ItemNeverHasChildren set.
      
      Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.See also parent() and index(). 

      becomes :

      // Java docs for ::hasChildren will look like:
      
      Returns true if parent has any children; otherwise returns false.Use rowCount() on the parent to find out the number of children.

      1- QAIM's flags-related APIs are not implemented in Java. So, the second paragraph should be omitted.

      2- There is no such thing as meta-object system in Java. So that last note should also be removed.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              nick_bennett Nicholas Bennett
              rampe Rami Potinkara
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes