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

No roleForName function in SortFilterProxyModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10
    • None

      Without this it's not possible for users to replace the missing get(int row, string roleName) function with a call to the data function, because that requires an int for the role.

      In Grecko's API it's implemented like this:

      /*!
          \qmlmethod int SortFilterProxyModel::roleForName(string roleName)
      
          Returns the role number for the given \a roleName.
          If no role is found for this \a roleName, \c -1 is returned.
      */
      
      int QQmlSortFilterProxyModel::roleForName(const QString& roleName) const
      {
          return m_roleNames.key(roleName.toUtf8(), -1);
      }
      

        For Gerrit Dashboard: QTBUG-140141
        # Subject Branch Project Status CR V

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change