Details
-
Technical task
-
Resolution: Fixed
-
P2: Important
-
None
-
-
2024wk22s2FOQtforAndroid, 2024wk24s2FOQtforAndroid, 2024wk26s2FOQtforAndroid, 2024wk38s2FOQtforAndroid, 2024wk28s2FOQtforAndroid, 2024wk30s2FOQtforAndroid, 2024wk32s2FOQtforAndroid, 2024wk36s2FOQtforAndroid, 2024wk40s3FOQtforAndroid
-
62a5d8040 (dev), 64cd7ca0c (6.8)
Description
Original changes
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
- mentioned in
-
Page Loading...