Get rid of deprecated QModelIndex::child()
ClosedPublic

Authored by yurchor on Aug 19 2019, 6:01 AM.

Details

Summary

QModelIndex::child() is obsolete

https://doc.qt.io/qt-5.13/qmodelindex-obsolete.html

This patch replaces it with QAbstractItemModel::index as recommended.

Test Plan
  1. Compile and install Ark.
  2. Open some archive and try to rename an item in it.

Diff Detail

Repository
R36 Ark
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
yurchor created this revision.Aug 19 2019, 6:01 AM
Restricted Application added a project: Ark. · View Herald TranscriptAug 19 2019, 6:01 AM
Restricted Application added a subscriber: kde-utils-devel. · View Herald Transcript
yurchor requested review of this revision.Aug 19 2019, 6:01 AM
elvisangelaccio accepted this revision.Sat, Aug 24, 4:40 PM
elvisangelaccio added a subscriber: elvisangelaccio.

Thanks. Please push to master.

This revision is now accepted and ready to land.Sat, Aug 24, 4:40 PM
This revision was automatically updated to reflect the committed changes.