Skip to content
Snippets Groups Projects

qt/qml: Removed property indexesFlat and Implemented QVariant

Open Ash requested to merge tvermaashutosh/vlc:Apr18Branch into master
2 unresolved threads
  • qml: Safely removed property bool indexesFlat from DragItem.qml.
  • qt: Implemented QVariant in the getData() method of MLBaseModel. Used QVariant in place of QVector and QModelIndexList, as the correct C++ method overload couldn't be picked by QML. (reference)

Fixes: FIXME, FIXME

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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);
  • Comment on lines -66 to -69

    If Qt still does not pick the right overload in Qt 6, I think we can remove Q_INVOKABLE from these methods, add one that is invokable and takes QVariant as input and then forwards to the right method from that method.

  • Please register or sign in to reply
  • added MRStatus::NotCompliant label and removed MRStatus::InReview label

  • Please register or sign in to reply
    Loading