summaryrefslogtreecommitdiffstats
path: root/cachedfiledata.h
Commit message (Collapse)AuthorAgeFilesLines
* Save CachedFileData to diskArno2018-01-021-0/+4
| | | | | | | | | Since we already have the data, save it to speed up the start. Surprisingly, the hardest part was to figure out how to use QStandardPaths to find a location where to save the file. I went with the semi-hardcoded path HomeLocation/.shemovcleaner, even though we're on windows.
* Implement cache for FileWidgetArno2018-01-021-0/+19
Some data-gathering is quite expensive and requires a QProcess, like getting the duration, so cache it in memory using QCache. Once the cache is filled, the UI is much snappier. This simplifies gatherData() a bit. It's still quite a long function, but now it doesn't create the QStandardItems any more. I moved it to a separate function.