Skip to content

Draft: Move some deprecated APIs to the Kf6 supported counterparts

Valentin Manea requested to merge valim/krusader:krusader_kio into master

In order to move to Kf6 the Krusader should move from the deprecated APIs to the new APIs. The request touches:

  • the konsole embedded terminal kpart creation
  • the viewer/editor kpart creation - including the okteta kpart which is an old plugin
  • the appending of actions to the panel context menu
  • using the new KIO::createDefaultJobUiDelegate instead of the old KIO::JobUiDelegate
  • Moving the ISO plugin to WorkerBase from SlaveBase
  • Using KIO::FileSystemFreeSpaceJob in the free file system information
  • Moving mount man to KIO::FileSystemFreeSpaceJob - this is rather more substantial
  • in Preview panel remove calls to deprecated setOverlay iconSize/iconAlpha
  • Tree view change showingDotFiles to showHiddenFiles
  • in Lister remove KCharsets::codecForName and use QTextCodec::codecForName, but for Qt6 there is a better solution in the Codecs framework
  • in checksumdlg rename deprecated setFilter to setNameFilter

PS: I didn't touch any of the MessageBox deprecations.

Deprecated Note: I think this MR looks nicer as a series of commits but I can also squish them into one.

Note 2: As I typed all these it's clear they are substantial changes, even though they are mostly about fixing warnings. I'm not so sure anymore about keeping in them in one merge request.

Note 3: Added the deprecation merge requests to each commit message.

Edited by Valentin Manea

Merge request reports