qt/qml: Removed property indexesFlat and Implemented QVariant
Merge request reports
Activity
@chub
Greetings from my side Pierre!
Hoping this message finds you well.
It would be a great help if you would review this MR of mine and suggest any required changes.added MRStatus::NotCompliant label
added MRStatus::Reviewable label and removed MRStatus::NotCompliant label
added Component::Interface: Qt label
changed milestone to %4.0
The intention is good, but I think the approach is not correct. We should not remove types like that.
QVariant
should be only used when it is the only feasible approach.I put the comment there:
// FIXME: Qt does not pick the right method overload: (reinvestigate Qt 6) // Ideally it should be named the same.
You should try to rename
Q_INVOKABLE void getDataFlat(const QVector<int> &indexList, QJSValue callback);
intoQ_INVOKABLE void getData(const QVector<int> &indexList, QJSValue callback);
. Hopefully Qt can pick the correct overload. Please let us know.
added MRStatus::InReview label and removed MRStatus::Reviewable label
mentioned in merge request !5267 (closed)
63 62 64 63 Q_INVOKABLE void sortByColumn(QByteArray criteria, Qt::SortOrder order); 65 64 66 Q_INVOKABLE void getData(const QModelIndexList &indexes, QJSValue callback); 67 // FIXME: Qt does not pick the right method overload: (reinvestigate Qt 6) 68 // Ideally it should be named the same. 69 Q_INVOKABLE void getDataFlat(const QVector<int> &indexList, QJSValue callback); added MRStatus::NotCompliant label and removed MRStatus::InReview label