-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.10
-
None
In Grecko's API it's implemented like this:
/*! \qmlmethod variant SortFilterProxyModel::get(int row, string roleName) Return the data for the given \a roleName of the item at \a row in the proxy model. This allows the role data to be read (not modified) from JavaScript. This equivalent to calling \c {data(index(row, 0), roleForName(roleName))}. */ QVariant QQmlSortFilterProxyModel::get(int row, const QString& roleName) const { return data(index(row, 0), roleForName(roleName)); }
This is more of a convenience function, but one that we should add since it saves a lot of boilerplate calls.
- resulted in
-
QTBUG-140141 No roleForName function in SortFilterProxyModel
-
- Reported
-
For Gerrit Dashboard: QTBUG-140142 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
675586,1 | SortFilterProxyModel: add get function | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |