Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125711

Share a static invalid QtModelIndex between jvm & native

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Not Evaluated
    • 6.8
    • 6.8
    • Quick: Other

    Description

      In many interfaces of QtAbstractModelIndex and its proxies, an invalid QtModelndex goes back and forth between jvm & native. This needs unnecessary JNI calls because an invalid QtModelIndex does not deliver any information other than being an invalid index (mostly when an item does not have parent aka. invalid parent).

      This can be avoided by sharing a reference to a static invalid QtModelIndex to avoid extra JNI calls.

      Attachments

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

        Activity

          People

            soarmin Soheil Armin
            soarmin Soheil Armin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes