D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-20 Thread Nathaniel Graham
This revision was automatically updated to reflect the committed changes. Closed by commit R241:3042e12296db: KIO::PreviewJob::defaultPlugins() function (authored by ngraham). CHANGED PRIOR TO COMMIT https://phabricator.kde.org/D8347?vs=21004=21005#toc REPOSITORY R241 KIO CHANGES SINCE

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-20 Thread Nathaniel Graham
ngraham updated this revision to Diff 21004. ngraham added a comment. Correcting the @since version number REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8347?vs=20975=21004 BRANCH master REVISION DETAIL https://phabricator.kde.org/D8347 AFFECTED FILES

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-19 Thread Kai Uwe Broulik
broulik added a comment. 5.39 was just released so it will be 5.40 REPOSITORY R241 KIO BRANCH master REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin, markg Cc: markg, anthonyfieroni, elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-19 Thread Nathaniel Graham
ngraham marked 2 inline comments as done. REPOSITORY R241 KIO BRANCH master REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin, markg Cc: markg, anthonyfieroni, elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-19 Thread Nathaniel Graham
ngraham marked an inline comment as done. ngraham added inline comments. INLINE COMMENTS > markg wrote in previewjob.h:198 > You miss an @since line. I've updated the header documentation with @returns and @since, as well as updated the documentation for the above availablePlugins() to help

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-19 Thread Nathaniel Graham
ngraham updated this revision to Diff 20975. ngraham added a comment. Updating header documentation with @returns and @since REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8347?vs=20927=20975 BRANCH master REVISION DETAIL

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Nathaniel Graham
ngraham added a comment. I am indeed up for lots of bug reports. :) We can't find the bugs if many (most?) users don't use the feature because it's off by default! FWIW, I've always turned all plugins on as one of the first things I do on a new install, and I have yet to see a

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Mark Gaiser
markg accepted this revision. markg added a comment. This revision is now accepted and ready to land. In https://phabricator.kde.org/D8347#156930, @ngraham wrote: > I still need to add a @since in the header documentation, after which point hopefully @markg will approve. :) +1

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Nathaniel Graham
ngraham added a comment. I still need to add a @since in the header documentation, after which point hopefully @markg will approve. :) REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin, markg Cc: markg, anthonyfieroni,

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Kai Uwe Broulik
broulik added a comment. Agreed. I'd say if nobody objects this week this is good to go REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin, markg Cc: markg, anthonyfieroni, elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Nathaniel Graham
ngraham marked 2 inline comments as done. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin, markg Cc: markg, anthonyfieroni, elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Nathaniel Graham
ngraham marked an inline comment as done. ngraham added inline comments. INLINE COMMENTS > anthonyfieroni wrote in previewjob.cpp:740 > const QStringList blackList = { QStringLiteral("textthumbnail") }; I wrote it the way I did on purpose, to facilitate people adding new entries if and when

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Nathaniel Graham
ngraham added a comment. Right, I deliberately made this a change of the default values. I didn't want to override existing user preferences. I do agree that there should probably be a mechanism to immediately enable new plugins as they're installed, but IMHO that's a different change

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Kai Uwe Broulik
broulik added a comment. Unfortunately this will not automatically enable newly installed thumbnailers once the user has changed the setting, right? Dolphin does `readEntry("foo", defaultPlugins)`, as soon as it's there new ones aren't taken into account. Perhaps we need another function

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-18 Thread Mark Gaiser
markg requested changes to this revision. markg added a comment. This revision now requires changes to proceed. I'm a bit skeptical about this function... It in fact is all plugins minus (in this case) the text thumbnail with no way to configure it afterwards. That means a updates

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Anthony Fieroni
anthonyfieroni added inline comments. INLINE COMMENTS > previewjob.cpp:740 > +{ > +QStringList blacklist = QStringList() > +<< QStringLiteral("textthumbnail"); const QStringList blackList = { QStringLiteral("textthumbnail") }; REPOSITORY R241 KIO REVISION

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham edited the summary of this revision. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin Cc: elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham edited the summary of this revision. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin Cc: elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham added a dependent revision: D8352: Use KIO::PreviewJob::defaultPlugins(). REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin Cc: elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham marked an inline comment as done. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin Cc: elvisangelaccio, #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham updated this revision to Diff 20927. ngraham added a comment. Whitespace fix REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8347?vs=20926=20927 BRANCH master REVISION DETAIL https://phabricator.kde.org/D8347 AFFECTED FILES

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham updated this revision to Diff 20926. ngraham marked an inline comment as done. ngraham added a comment. Style improvements/corrections REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8347?vs=20923=20926 BRANCH master REVISION DETAIL

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham marked 3 inline comments as done. ngraham added inline comments. INLINE COMMENTS > elvisangelaccio wrote in previewjob.cpp:740-741 > Shouldn't the blacklist be user-configurable? In fact, the whole list of plugins to enable is user-configurable in Dolphin. The blacklist just defines

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Elvis Angelaccio
elvisangelaccio added inline comments. INLINE COMMENTS > previewjob.cpp:740-741 > +{ > +QStringList blacklist = QStringList() > +<< QStringLiteral("textthumbnail"); > + Shouldn't the blacklist be user-configurable? > previewjob.cpp:745 > +foreach (const

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham updated this revision to Diff 20923. ngraham added a comment. Updating comments/documentation REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D8347?vs=20916=20923 BRANCH master REVISION DETAIL https://phabricator.kde.org/D8347 AFFECTED FILES

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham added a dependent revision: D7440: Turn on Dolphin icon previews by default. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin Cc: #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham added reviewers: Frameworks, broulik, Dolphin. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D8347 To: ngraham, #frameworks, broulik, #dolphin Cc: #frameworks

D8347: KIO::PreviewJob::defaultPlugins() function

2017-10-17 Thread Nathaniel Graham
ngraham created this revision. Restricted Application added a project: Frameworks. Restricted Application added a subscriber: Frameworks. REVISION SUMMARY Adds a new KIO::PreviewJob::defaultPlugins() function that returns all available plugins minus ones specified in an internal blacklist.