Make iconFromDirectoryFile() and iconFromDesktopFile() public in KIOCore
AbandonedPublic

Authored by ngraham on May 23 2018, 11:08 PM.

Details

Reviewers
apol
dfaure
Group Reviewers
Frameworks
Summary

This allows us to use them in KIO::iconNameForURL() to gain custom folder icon support.

CCBUG: 356045

Test Plan
  • No visual regressions in Dolphin
  • No unit test regressions

Diff Detail

Repository
R241 KIO
Branch
public-iconFromDesktopFile-and-iconFromDirectoryFile (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
ngraham created this revision.May 23 2018, 11:08 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptMay 23 2018, 11:08 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
ngraham requested review of this revision.May 23 2018, 11:08 PM

Imho fine in principle, but:
QFileInfo stats internally and KDesktopFile actually reads file contents. I don't see how you came to the conclusion this doesn't stat.

Hmm, you're right. I guess there's no way around that if we want custom icon support here...

ngraham edited the summary of this revision. (Show Details)May 24 2018, 1:02 PM

Abandoning in favor of D13048

ngraham abandoned this revision.Jun 25 2019, 8:55 PM